rabbitmq/compose.yaml

51 lines
1.7 KiB
YAML
Raw Normal View History

# Rx3-Docker/RabbitMQ 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_NAME_FULL: ${IMG_NAME_FULL}
IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_FROM_URL: ${IMG_FROM_URL}
RABBITMQ_LIB: ${MQSERVER_LIB_DIR}
RABBITMQ_PORT_MAIN: ${MQSERVER_PORT_MAIN_INT}
RABBITMQ_PORT_ADMIN: ${MQSERVER_PORT_ADMIN_INT}
POSTRMQ_LOG_DIR: ${MQSERVER_LOG_POSTRMQ_DIR}
restart: unless-stopped
environment:
RABBITMQ_UID: ${RABBITMQ_UID}
RABBITMQ_GID: ${RABBITMQ_GID}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${MQSERVER_PORT_ADMIN_INT}"]
interval: 30s
timeout: 10s
start_period: 60s
start_interval: 10s
retries: 30
volumes:
- ./var/lib/rabbitmq:${MQSERVER_LIB_DIR}
- ./var/log/init:${MQSERVER_LOG_INIT_DIR}
- ./var/log/supervisor:${MQSERVER_LOG_SV_DIR}
ports:
- "127.0.0.1:${MQSERVER_PORT_SV_EXT}:${MQSERVER_PORT_SV_INT}"
- "127.0.0.1:${MQSERVER_PORT_MAIN_EXT}:${MQSERVER_PORT_MAIN_INT}"
- "127.0.0.1:${MQSERVER_PORT_ADMIN_EXT}:${MQSERVER_PORT_ADMIN_INT}"