-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
64 lines (61 loc) · 1.25 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
64
version: '3.7'
services:
client:
stdin_open: true
build:
context: ./client
dockerfile: Dockerfile.prod
image: waves_client
container_name: waves_client_container
ports:
- '80:80'
depends_on:
- api
networks:
- waves_network
restart: always
api:
build:
context: ./server
dockerfile: Dockerfile.prod
image: ishantgupta777/waves_server
container_name: waves_server_container
restart: always
command: npm run server
ports:
- '5000:5000'
depends_on:
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017/waves2020
networks:
- waves_network
mongo:
image: mongo
restart: always
container_name: waves_mongo_container
ports:
- '27017:27017'
networks:
- waves_network
volumes:
- data_mongo:/data/db
# nginx_service:
# image: waves_nginx
# build:
# context: ./nginx
# dockerfile: Dockerfile
# ports:
# - '80:80'
# - '443:443'
# depends_on:
# - client
# - api
networks:
waves_network:
driver: bridge
volumes:
data_mongo:
node_modules:
web-root:
driver: local