-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 1.12 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
version: "3.4"
services:
redis:
image: redis
restart: always
ports:
- 6379:6379
restart: always
rabbitmq:
image: rabbitmq:3-management
ports:
- 5672:5672 #amqp
- 15672:15672 #http
- 15692:15692 #http/prometheus
restart: always
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 3s
retries: 30
gateway:
build: ./gateway
depends_on:
- "rabbitmq"
env_file:
- .env
restart: always
cache:
build: ./cache
restart: always
volumes:
- ./cache/VoiceStateCache.js:/usr/src/bot/node_modules/raincache/dist/cache/VoiceStateCache.js
deploy:
mode: replicated
replicas: 3
update_config:
parallelism: 1
delay: 5s
order: start-first
depends_on:
- "redis"
- "rabbitmq"
env_file:
- .env
worker:
build: ./worker
restart: always
deploy:
mode: replicated
replicas: 3
update_config:
parallelism: 1
delay: 5s
order: start-first
depends_on:
- "cache"
env_file:
- .env