-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
167 lines (157 loc) · 4.49 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: "2.2"
services:
backend:
container_name: italia-backend
build:
context: ./
dockerfile: Dockerfile
environment:
- NODE_ENV=dev
- REDIS_URL=redis-cluster
- REDIS_PASSWORD=bitnami
- REDIS_PORT=6379
- GITHUB_TOKEN
- NODE_TLS_REJECT_UNAUTHORIZED=0
expose:
- "443"
ports:
- "443:443"
- "5859:5859"
image: node:18.13.0-alpine
command: ["yarn", "start"]
volumes:
- ".:/usr/src/app"
networks:
- io-be
#
# __ __ __ __
# .----.-----.--| |__.-----.----| .--.--.-----| |_.-----.----.
# | _| -__| _ | |__ --| __| | | |__ --| _| -__| _|
# |__| |_____|_____|__|_____|____|__|_____|_____|____|_____|__|
#
#
redis-node-0:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6380:6379
volumes:
- redis-node-0-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-node-1:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6381:6379
volumes:
- redis-node-1-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-node-2:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6382:6379
volumes:
- redis-node-2-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-node-3:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6383:6379
volumes:
- redis-node-3-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-node-4:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6384:6379
volumes:
- redis-node-4-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-node-5:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6385:6379
volumes:
- redis-node-5-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-node-6:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6386:6379
volumes:
- redis-node-6-data:/bitnami/redis/data
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
redis-cluster:
image: docker.io/bitnami/redis-cluster:6.2
networks:
- io-be
ports:
- 6379:6379
volumes:
- redis-cluster-data:/bitnami/redis/data
depends_on:
- redis-node-0
- redis-node-1
- redis-node-2
- redis-node-3
- redis-node-4
- redis-node-5
- redis-node-6
environment:
- 'REDIS_PASSWORD=bitnami'
- 'REDISCLI_AUTH=bitnami'
- 'REDIS_CLUSTER_REPLICAS=1'
- 'REDIS_NODES=redis-cluster redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6'
- 'REDIS_CLUSTER_CREATOR=yes'
storage:
image: mcr.microsoft.com/azure-storage/azurite
container_name: storage
hostname: azurite
restart: always
command: "azurite --blobHost 127.0.0.1 --blobPort 20003 --queueHost 127.0.0.1 --queuePort 20004 --tableHost 127.0.0.1 --tablePort 20005"
ports:
- "20003:20003"
- "20004:20004"
- "20005:20005"
networks:
- io-be
networks:
io-be:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450
volumes:
redis-node-0-data:
redis-node-1-data:
redis-node-2-data:
redis-node-3-data:
redis-node-4-data:
redis-node-5-data:
redis-node-6-data:
redis-cluster-data: