-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 952 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.9"
services:
backend:
image: 'backend:latest'
build: .
container_name: backend
hostname: backend
domainname: services.local
command: [ "yarn", "start" ]
env_file: .env
depends_on:
# - redis
- mongo_db
ports:
- '3000:3000'
# environment:
# - AWS_REGION
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_SESSION_TOKEN
volumes:
- ./src:/home/node/app/src
redis:
image: redis:latest
container_name: redis
hostname: redis
domainname: services.local
restart: always
ports:
- '6379:6379'
mongo_db:
image: mongo:latest
container_name: mongo_db
hostname: mongo
domainname: services.local
restart: always
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: mongo
networks:
default:
name: local
external: true