-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.prod.yml
63 lines (60 loc) · 1.45 KB
/
docker-compose.prod.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
version: '3.7'
services:
client_reg_portal:
stdin_open: true
# build:
# context: ./client
# dockerfile: Dockerfile.prod
image: devsocbpgc/waves_client_reg_portal
container_name: waves_client_reg_portal_container
ports:
- '3020:3000'
depends_on:
- api_reg_portal
networks:
- waves_network_reg_portal
restart: always
api_reg_portal:
# build:
# context: ./server
# dockerfile: Dockerfile.prod
image: devsocbpgc/waves_server_reg_portal
container_name: waves_server_reg_portal_container
restart: always
command: npm run server
ports:
- '5020:5000'
depends_on:
- mongo_reg_portal
environment:
- MONGO_URL=mongodb://mongo_reg_portal:27017/waves2020_reg_portal
networks:
- waves_network_reg_portal
mongo_reg_portal:
image: mongo
restart: always
container_name: waves_mongo_reg_portal_container
ports:
- '27019:27017'
networks:
- waves_network_reg_portal
volumes:
- ~/data_mongo_waves_reg_portal/db:/data/db
# nginx_service:
# image: waves_nginx
# build:
# context: ./nginx
# dockerfile: Dockerfile
# ports:
# - '80:80'
# - '443:443'
# depends_on:
# - client
# - api
networks:
waves_network_reg_portal:
driver: bridge
volumes:
node_modules:
web-root:
driver: local