You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
2 years ago
|
# version: '3.9'
|
||
|
|
||
|
# services:
|
||
|
|
||
|
# # my-rabbitmq:
|
||
|
# # # Use Alpine for docker-compose.
|
||
|
# # image: rabbitmq:3-management-alpine
|
||
|
# # container_name: my-rabbitmq
|
||
|
# # hostname: my-rabbitmq-host
|
||
|
# # ports:
|
||
|
# # - "15762:15762"
|
||
|
# # - "5762:5762"
|
||
|
# # volumes:
|
||
|
# # - ".rabbitdata:/var/lib/rabbitmq"
|
||
|
# # environment:
|
||
|
# # - RABBITMQ_DEFAULT_USER=runcible
|
||
|
# # - RABBITMQ_DEFAULT_PASS=Testing123
|
||
|
# # - RABBITMQ_DEFAULT_VHOST=runcible
|
||
|
# # healthcheck:
|
||
|
# # test: [ "CMD", "nc", "-z", "localhost", "5672" ]
|
||
|
# # interval: 5s
|
||
|
# # timeout: 15s
|
||
|
# # retries: 1
|
||
|
|
||
|
version: "3.9"
|
||
|
services:
|
||
|
my-rabbit:
|
||
|
image: rabbitmq:3-management-alpine
|
||
|
container_name: my-rabbit
|
||
|
hostname: my-rabbit-host
|
||
|
environment:
|
||
|
# Defaults only created if db does not exist.
|
||
|
- RABBITMQ_DEFAULT_USER=runcible
|
||
|
- RABBITMQ_DEFAULT_PASS=Testing123
|
||
|
- RABBITMQ_DEFAULT_VHOST=runcible
|
||
|
ports:
|
||
|
- "15672:15672"
|
||
|
- "5672:5672"
|
||
|
volumes:
|
||
|
- ".rabbitdata:/var/lib/rabbitmq"
|
||
|
healthcheck:
|
||
|
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
|
||
|
interval: 5s
|
||
|
timeout: 15s
|
||
|
retries: 1
|