-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 2.05 KB
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
version: '3.7'
services:
# This is a RabbitMQ Container that will run RMQ.
rabbitmq:
# Setup environment variables.
# Supported variables by the image are discussed
# here: https://hub.docker.com/_/rabbitmq/
environment:
PROVISIONING_CONTAINER_PATH: /tmp/provisioning
RABBITMQ_LOGS: /var/log/rabbitmq/rabbit.log
RABBITMQ_SASL_LOGS: /var/log/rabbitmq/rabbit-sasl.log
image: docker-rmq
build:
# Build from the rabbitmq/ folder provided in the repo.
# with the arguments passed.
context: rabbitmq/
args:
RMQ_VERSION_TAG: 3.9.3-management
# Set a hostname and container name for the container
hostname: docker-rmq.local
container_name: docker-rmq.local
# Ensure the container restarts on boot
restart: always
logging:
options:
labels: docker-rmq.local
ports:
# - '5672:5672' # AMQP (no TLS) # Should be COMMENTED OUT / DISABLED to require AMQPS!
- '5671:5671' # AMQPS (AMQP over TLS)
- '15671:15671' # Management Dashboard over TLS (https://localhost:15671)
# Bind volumes to the host
volumes:
# Controls which RMQ plugins are enabled
- type: bind
source: ./rabbitmq/config/enabled_plugins.erl
target: /etc/rabbitmq/enabled_plugins
read_only: true
# Passes a custom RMQ Config
- type: bind
source: ./rabbitmq/config/rabbitmq.conf
target: /etc/rabbitmq/rabbitmq.conf
read_only: true
# Map a volume for the RMQ Certs
- type: bind
source: ./rabbitmq/config/certs
target: /etc/rabbitmq/certs
read_only: true
# Sets up a place to hold our automated provisioning
- type: bind
source: ./rabbitmq/provisioning
target: /tmp/provisioning
read_only: true
# Sets up a location to hold RMQ Secrets
- type: bind
source: ./rabbitmq-secrets
target: /tmp/secrets
# Sets up a location for RMQ logs to live
- type: bind
source: ./rabbitmq/logs
target: /var/log/rabbitmq