forked from nanit/kubernetes-rabbitmq-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.27 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
version: "2"
services:
rabbitmq-0.rmq-cluster:
hostname: rabbitmq-0.rmq-cluster
build: docker
environment:
RABBITMQ_ERLANG_COOKIE: "AAAA"
RABBITMQ_USE_LONGNAME: "true"
RABBITMQ_NODENAME: "[email protected]"
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "password"
networks:
main:
aliases:
- rabbitmq-0.rmq-cluster
ports:
- "15672:15672"
rabbitmq-1.rmq-cluster:
hostname: rabbitmq-1.rmq-cluster
build: docker
environment:
RABBITMQ_ERLANG_COOKIE: "AAAA"
RABBITMQ_USE_LONGNAME: "true"
RABBITMQ_NODENAME: "[email protected]"
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "password"
networks:
main:
aliases:
- rabbitmq-1.rmq-cluster
ports:
- "15673:15672"
rabbitmq-2.rmq-cluster:
hostname: rabbitmq-2.rmq-cluster
build: docker
environment:
RABBITMQ_ERLANG_COOKIE: "AAAA"
RABBITMQ_USE_LONGNAME: "true"
RABBITMQ_NODENAME: "[email protected]"
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "password"
networks:
main:
aliases:
- rabbitmq-2.rmq-cluster
ports:
- "15674:15672"
networks:
main: