-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (60 loc) · 1.67 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
services:
mindglowing_finance_nginx:
image: nginx:latest
container_name: mindglowing_finance_nginx
# restart: unless-stopped
ports:
- 8159:80
- 8151:443
volumes:
# - ./nginx/web/:/usr/share/nginx/html
- ./nginx/conf/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/conf/init.sh:/etc/nginx/conf.d/init.sh
- ./nginx/ssl:/etc/nginx/certs
networks:
- docker_swag
- mindglowing_finance
env_file:
- .env
command: bash -c "chmod +rx /etc/nginx/conf.d/init.sh && /etc/nginx/conf.d/init.sh && nginx -g 'daemon off;'"
mindglowing_finance_web:
build:
context: .
dockerfile: ./Dockerfile
container_name: mindglowing_finance_web
restart: unless-stopped
working_dir: /app
ports:
- "8160:3000"
volumes:
- ./web/app:/app
- /app/node_modules
networks:
- mindglowing_finance
env_file:
- .env
mindglowing_finance_mongo_db:
image: mongo
container_name: mindglowing_finance_mongo_db
restart: unless-stopped
ports:
- 27017:27017
# - 28017:28017
volumes:
- ./mongodb/config/mongod.conf.orig:/etc/mongod.conf.orig
- ./mongodb/db/:/data/db
- ./mongodb/config/init-scripts/init-db.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./mongodb/config/update-password.js:/scripts/update-password.js
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=root-db
env_file:
- .env
networks:
- mindglowing_finance
networks:
mindglowing_finance:
docker_swag:
external: true