-
Notifications
You must be signed in to change notification settings - Fork 94
/
docker-compose.yml
47 lines (44 loc) · 1.15 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
version: "3"
services:
rabbit1:
image: rabbitmq:3-management
hostname: rabbit1
environment:
RABBITMQ_ERLANG_COOKIE: "secret string"
RABBITMQ_NODENAME: rabbit1
volumes:
- "./rabbitmq.config:/etc/rabbitmq/rabbitmq.config"
- "./definitions.json:/etc/rabbitmq/definitions.json"
ports:
- "4369:4369"
- "5671:5671"
- "5672:5672"
- "15671:15671"
- "15672:15672"
- "25672:25672"
rabbit2:
image: rabbitmq:3-management
hostname: rabbit2
depends_on:
- rabbit1
environment:
RABBITMQ_ERLANG_COOKIE: "secret string"
RABBITMQ_NODENAME: rabbit2
volumes:
- "./rabbitmq.config:/etc/rabbitmq/rabbitmq.config"
- "./definitions.json:/etc/rabbitmq/definitions.json"
rabbit3:
image: rabbitmq:3-management
hostname: rabbit3
depends_on:
- rabbit1
environment:
RABBITMQ_ERLANG_COOKIE: "secret string"
RABBITMQ_NODENAME: rabbit3
volumes:
- "./rabbitmq.config:/etc/rabbitmq/rabbitmq.config"
- "./definitions.json:/etc/rabbitmq/definitions.json"
networks:
default:
external:
name: rabbitmq-cluster