-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
105 lines (97 loc) · 1.96 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
version: '2'
services:
composer:
image: ypereirareis/composer:1.1.3-alpine
working_dir: /src
environment:
COMPOSER_HOME: /tmp/.composer
volumes:
- ~/.composer:/tmp/.composer:rw
- ./sf:/src:rw
php:
build: ./docker/php
environment:
SYMFONY_ENV:
CUSTOM_UID: ${UID}
volumes:
- ./var/logs/app:/var/www/html/var/logs:rw
- ./sf:/var/www/html:rw
networks:
- default
rmq1:
image: bijukunjummen/rabbitmq-server:3.6.5
hostname: rmq1
environment:
ERLANG_COOKIE: 'ck8FC0uJ9vePIhLr'
TCP_PORTS: "5672,15672"
ports:
- "127.0.0.1:1234:15672"
networks:
- rmq_1_2
- rmq_3_1
rmq2:
image: bijukunjummen/rabbitmq-server:3.6.5
hostname: rmq2
environment:
ERLANG_COOKIE: 'ck8FC0uJ9vePIhLr'
CLUSTERED: 'true'
CLUSTER_WITH: rmq1
TCP_PORTS: "5672"
ports:
- "127.0.0.1:1235:15672"
networks:
- rmq_1_2
- rmq_2_3
rmq3:
image: bijukunjummen/rabbitmq-server:3.6.5
hostname: rmq3
environment:
ERLANG_COOKIE: 'ck8FC0uJ9vePIhLr'
CLUSTERED: 'true'
CLUSTER_WITH: rmq1
TCP_PORTS: "5672"
ports:
- "127.0.0.1:1236:15672"
networks:
- rmq_3_1
- rmq_2_3
rmqN:
image: bijukunjummen/rabbitmq-server:3.6.5
environment:
ERLANG_COOKIE: 'ck8FC0uJ9vePIhLr'
CLUSTERED: 'true'
CLUSTER_WITH: rmq1
TCP_PORTS: "5672"
networks:
- rmq_3_1
- rmq_2_3
haproxy:
image: dockercloud/haproxy:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
MODE: tcp
expose:
- 5672
links:
- rmq1
- rmq2
- rmq3
ports:
- '80:80'
- '5672:5672'
networks:
- default
- rmq_1_2
- rmq_2_3
- rmq_3_1
networks:
rmq_1_2:
external:
name: rmq_1_2
rmq_2_3:
external:
name: rmq_2_3
rmq_3_1:
external:
name: rmq_3_1