-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
109 lines (102 loc) · 2.6 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
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
108
109
services:
redis-server:
image: redis:latest
container_name: redis-server
ports:
- "6379:6379" # Expose Redis port
networks:
- peerprep-network
frontend:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/peerprep-fe:latest
build:
context: ./peerprep-fe
dockerfile: Dockerfile
target: development
volumes:
- ./peerprep-fe:/app
- /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
build:
context: ./question-service
dockerfile: Dockerfile
target: development
volumes:
- ./question-service:/app
- /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
build:
context: ./user-service
dockerfile: Dockerfile
target: development
volumes:
- ./user-service:/usr/src/app
- /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: development
volumes:
- ./matching-service:/app
- /app/node_modules
ports:
- "5001:5001"
networks:
- peerprep-network
env_file:
- ./matching-service/.env.dev
session-service:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/session-svc:latest
build:
context: ./session-service
dockerfile: Dockerfile
target: development
volumes:
- ./session-service:/app
- /app/node_modules
ports:
- "4444:4444"
- "5555:5555"
networks:
- peerprep-network
env_file:
- ./session-service/.env.dev
api-gateway:
image: asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/api-gateway:latest
build:
context: ./api-gateway
dockerfile: Dockerfile
target: development
volumes:
- ./api-gateway:/app
- /app/node_modules
ports:
- "8001:8001"
networks:
- peerprep-network
env_file:
- ./api-gateway/.env.production
networks:
peerprep-network:
driver: bridge