-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 992 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 992 Bytes
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
version: '3'
services:
proxy:
image: 'nginx:1.19'
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- 80:80
- 443:443
links:
- "dumdee-api:dumdee-api"
dumdee-api:
build: .
# image: 'witaya1412/dumdee-api:latest'
volumes:
- .:/app
- /app/node_modules
ports:
- 3000:3000
- 9229:9229
environment:
- DB_URL=mongodb://database:27017/dumdee?authSource=dumdee
- DB_USER=devuser
- DB_PWD=P@ssw0rd
- JWT_SECRET=fmaxt3kVhBrz6Ujx4w8DvA2UD9SjJuiQ
links:
- "database:database"
database:
image: 'mongo:4.4.0-bionic'
environment:
- MONGO_INITDB_DATABASE=dumdee
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=P@ssw0rd
volumes:
- ./init-mongo-dev.js:/docker-entrypoint-initdb.d/init-mongo-dev.js:ro
- ./mongo-volume:/data/db
ports:
- '27017-27019:27017-27019'