forked from pushkin-consortium-deprecated/deprecated3
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.production.yml
98 lines (98 loc) · 2.61 KB
/
docker-compose.production.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
version: '2'
services:
api:
image: gameswithwords/api:latest
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- NODE_ENV=production
links:
- message-queue
command:
- bash
- start.sh
labels:
io.rancher.scheduler.global: 'true'
cron:
image: gameswithwords/cron:latest
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- API_ADDRESS=http://api:3000/api
- DATABASE_URL=INSERT_HERE
- TRANSACTION_DATABASE_URL=INSERT_HERE
links:
- message-queue
- api
labels:
io.rancher.scheduler.global: 'true'
db-worker:
image: gameswithwords/db-worker:latest
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- DATABASE_URL=INSERT_HERE
- TRANSACTION_DATABASE_URL=INSERT_HERE
- NODE_ENV=production
links:
- message-queue
command:
- bash
- start.sh
labels:
io.rancher.scheduler.global: 'true'
load-balancer:
image: rancher/lb-service-haproxy
ports:
- '80'
- '443'
labels:
io.rancher.scheduler.global: 'true'
io.rancher.container.agent.role: environmentAdmin
io.rancher.container.create_agent: 'true'
message-queue:
image: gameswithwords/message-queue:latest
environment:
CONFD_ARGS: --interval 5
RABBITMQ_CLUSTER_PARTITION_HANDLING: autoheal
RABBITMQ_NET_TICKTIME: '60'
volumes_from:
- message-queue-datavolume
labels:
io.rancher.scheduler.global: 'true'
io.rancher.sidekicks: message-queue-base,message-queue-datavolume
io.rancher.container.hostname_override: container_name
message-queue-base:
image: rabbitmq:3.6-management
environment:
RABBITMQ_ERLANG_COOKIE: message-queue-cookie
entrypoint:
- /opt/rancher/bin/run.sh
network_mode: container:message-queue
volumes_from:
- message-queue-datavolume
labels:
io.rancher.container.hostname_override: container_name
message-queue-datavolume:
image: rabbitmq:3.6-management
entrypoint:
- /bin/true
volumes:
- /etc/rabbitmq
- /opt/rancher/bin
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.hostname_override: container_name
server:
image: gameswithwords/server:latest
labels:
io.rancher.scheduler.global: 'true'
listener-quiz:
image: gameswithwords/listener-quiz:latest
command: bash start.sh
depends_on:
- message-queue
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- QUEUE=listener-quiz
links:
- message-queue
labels:
io.rancher.scheduler.global: 'true'