-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.01 KB
/
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
version: "3.9"
services:
api:
build:
context: .
volumes:
- '.:/app'
command: [ "sh", "./start.sh" ] # entrypoint means you cant debug with docker-compose run api sh
ports:
- "1323:1323"
environment:
- mongousername=mongoadmin
- mongopassword=secret
- mode=local
- mongohostname=db
depends_on:
- db
- worker
worker:
build:
context: .
volumes:
- '.:/app'
command: [ "sh", "./start.sh", "worker" ] # entrypoint means you cant debug with docker-compose run api sh
environment:
- mongousername=mongoadmin
- mongopassword=secret
- mode=local
- mongohostname=db
depends_on:
- db
# logging:
# driver: none # Change This If You Want To Read Logs
db:
image: mongo
ports:
- "27017:27017"
volumes:
- api_db_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
volumes:
api_db_data:
driver: local