-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
107 lines (100 loc) · 2.5 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
redis-server:
image: redis:latest
container_name: redis-server
ports:
- "6379:6379"
networks:
- peerprep-network
frontend:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/peerprep-fe:latest
platform: linux/amd64
build:
context: ./peerprep-fe
dockerfile: Dockerfile
target: production
volumes:
- /app/node_modules
ports:
- "3000:3000"
networks:
- peerprep-network
env_file:
- ./peerprep-fe/.env.production
question-service:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/question-svc:latest
platform: linux/amd64
build:
context: ./question-service
dockerfile: Dockerfile
target: production
volumes:
- /app/node_modules
ports:
- "4001:4001"
networks:
- peerprep-network
env_file:
- ./question-service/.env.dev
user-service:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/user-svc:latest
platform: linux/amd64
build:
context: ./user-service
dockerfile: Dockerfile
target: production
volumes:
- /usr/src/app/node_modules
ports:
- "3001:3001"
networks:
- peerprep-network
env_file:
- ./user-service/.env
matching-service:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/matching-svc:latest
build:
context: ./matching-service
dockerfile: Dockerfile
target: production
volumes:
- /app/node_modules
ports:
- "5001:5001"
networks:
- peerprep-network
env_file:
- ./matching-service/.env.production
api-gateway:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/api-gateway:latest
build:
context: ./api-gateway
dockerfile: Dockerfile
target: production
volumes:
- ./api-gateway:/app
- /app/node_modules
ports:
- "8001:8001"
networks:
- peerprep-network
env_file:
- ./api-gateway/.env.production
session-service:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/session-svc:latest
build:
context: ./session-service
dockerfile: Dockerfile
target: production
volumes:
- /app/node_modules
ports:
- "4444:4444"
- "5555:5555"
networks:
- peerprep-network
env_file:
- ./session-service/.env.dev
networks:
peerprep-network:
driver: bridge