-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.28 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
services:
blue:
image: "${NCP_CONTAINER_REGISTRY}/cnergy-backend:${GITHUB_SHA}"
container_name: cnergy-backend-blue
env_file:
- .env
environment:
TZ: Asia/Seoul
ports:
- '8080:8080'
depends_on:
- redis
networks:
- cnergy-backend-network
green:
image: "${NCP_CONTAINER_REGISTRY}/cnergy-backend:${GITHUB_SHA}"
container_name: cnergy-backend-green
env_file:
- .env
environment:
TZ: Asia/Seoul
ports:
- '8081:8080'
depends_on:
- redis
networks:
- cnergy-backend-network
redis:
image: redis:6.0.9
container_name: redis
ports:
- '6379:6379'
volumes:
- redis-data:/data
networks:
- cnergy-backend-network
rabbit:
container_name: cnergy-rabbitmq
hostname: cnergy-rabbit
image: heidiks/rabbitmq-delayed-message-exchange:4.0.2-management
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
ports:
- "5672:5672"
- "15672:15672"
env_file:
- .env
volumes:
- rabbitmq-data:/var/lib/rabbitmq
networks:
- cnergy-backend-network
volumes:
redis-data:
rabbitmq-data:
networks:
cnergy-backend-network:
driver: bridge