-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
56 lines (52 loc) · 1.08 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
services:
aroundu-mongo:
image: mongo:latest
container_name: aroundu-mongo
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
networks:
- app-network
aroundu-server:
build:
context: ./
dockerfile: ./server/Dockerfile.server.prod
container_name: aroundu-server
ports:
- '3001:3001'
volumes:
- ./shared:/app/shared/src
- ./server/src:/app/server/src
networks:
- app-network
env_file:
- ./server/.env
depends_on:
aroundu-mongo:
condition: service_started
aroundu-web:
build:
context: ./
dockerfile: ./web/Dockerfile.web.prod
container_name: aroundu-web
ports:
- '3000:3000'
volumes:
- ./shared:/app/shared/src
- ./web/public:/app/web/public
- ./web/app:/app/web/app
- ./web/src:/app/web/src
networks:
- app-network
env_file:
- ./web/.env
depends_on:
aroundu-server:
condition: service_started
networks:
app-network:
driver: bridge
volumes:
mongo_data:
driver: local