This repository has been archived by the owner on Jul 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.production.yml
86 lines (86 loc) · 2.32 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
version: '2'
services:
api:
image: 'pushkin/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: 'pushkin/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: 'pushkin/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: 'pushkin/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: 'pushkin/server:latest'
labels:
io.rancher.scheduler.global: 'true'