rabbitmq/compose.yaml
Arnaud G. GIBERT 5c02695762 - Add a post init stage to download & install rabbitmqadmin utility,
- Add hostname in compose file to fix rabbitmq persistence.
2024-11-01 17:48:05 +01:00

38 lines
890 B
YAML

# Rx3 RabbitMQ Mageia-9 Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
services:
mqserver:
container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
image: ${IMG_URL}
build:
context: .
args:
- IMG_NAME=${IMG_NAME}
- IMG_FULL_NAME=${IMG_FULL_NAME}
- IMG_VERSION=${IMG_VERSION}
- IMG_MAINTAINER=${IMG_MAINTAINER}
- IMG_URL_PREFIX=${IMG_URL_PREFIX}
restart: unless-stopped
environment:
RABBITMQ_UID: ${RABBITMQ_UID}
RABBITMQ_GID: ${RABBITMQ_GID}
volumes:
- ./var/lib/rabbitmq:/var/lib/rabbitmq
network_mode: bridge
ports:
- "127.0.0.1:${MQSERVER_SV_PORT}:9001"
- "127.0.0.1:${MQSERVER_PORT}:5672"
- "127.0.0.1:${MQSERVER_ADMIN_PORT}:15672"