-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 952 Bytes
/
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
version: "3.8"
services:
rabbitmq:
image: rabbitmq:management-alpine
container_name: rabbitmq
restart: unless-stopped
build:
context: docker/
ports:
- "1883:1883"
- "5672:5672"
- "8080:15672"
- "1885:15675"
command: "/bin/bash -c \"rabbitmq-plugins enable --offline rabbitmq_mqtt rabbitmq_web_mqtt rabbitmq_amqp1_0; rabbitmq-server\""
env_file:
- config/login.env
volumes:
- type: bind
source: ./config/rabbitmq.conf
target: /etc/rabbitmq/rabbitmq.conf
read_only: true
- type: bind
source: ./config/advanced.config
target: /etc/rabbitmq/advanced.config
read_only: true
networks:
brokernet:
ipv4_address: 172.16.238.101
networks:
brokernet:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 172.16.238.0/24