-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.37 KB
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
services:
auth:
build: ./auth
container_name: auth_service
ports:
- "3001:5005"
environment:
- NODE_ENV=development
restart: unless-stopped
chat:
build: ./chat
container_name: "chat_service"
ports:
- "3002:8080"
environment:
- INSTANCE_NAME=chat_service1
- NODE_ENV=development
- REDIS_DEV=redis://redis:6379
depends_on:
- redis
restart: unless-stopped
chat1:
build: ./chat
container_name: "chat_service1"
ports:
- "3033:8080"
environment:
- NODE_ENV=development
- REDIS_DEV=redis://redis:6379
- INSTANCE_NAME=chat_service2
depends_on:
- redis
restart: unless-stopped
api-gateway:
build: ./gateway # path where your gateway Dockerfile is
container_name: gateway
ports:
- "3003:8005" # frontend connects to gateway
environment:
- NODE_ENV=development
depends_on:
- auth
- chat
restart: unless-stopped
redis:
image: redis:latest
container_name: redis_cache
ports:
- "6379:6379"
restart: unless-stopped
# nginx:
# image: nginx:1.25
# container_name: nginx_balancer
# volumes:
# #absolute path to the nginx config file
# - ./nginx.conf:/etc/nginx/nginx.conf
# ports:
# - "4000:4000"
# depends_on:
# - chat
# - chat1