2024-11-12 21:52:33 +01:00
|
|
|
# Rx3-Docker/RabbitMQ Docker Image
|
2024-09-09 23:59:51 +02:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-11-12 21:52:33 +01:00
|
|
|
name: ${IMG_NAME}
|
2024-09-09 23:59:51 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
mqserver:
|
2024-11-12 21:52:33 +01:00
|
|
|
container_name: ${IMG_NAME}
|
|
|
|
hostname: ${IMG_NAME}
|
2024-09-09 23:59:51 +02:00
|
|
|
|
2024-11-12 21:52:33 +01:00
|
|
|
image: ${IMG_URL}
|
2024-09-09 23:59:51 +02:00
|
|
|
|
|
|
|
build:
|
2024-11-12 21:52:33 +01:00
|
|
|
context: .
|
2024-09-09 23:59:51 +02:00
|
|
|
args:
|
2024-11-12 21:52:33 +01:00
|
|
|
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
|
2024-09-09 23:59:51 +02:00
|
|
|
|
|
|
|
environment:
|
2024-11-12 21:52:33 +01:00
|
|
|
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
|
|
|
|
|
2024-09-09 23:59:51 +02:00
|
|
|
volumes:
|
2024-11-12 21:52:33 +01:00
|
|
|
- ./var/lib/rabbitmq:${MQSERVER_LIB_DIR}
|
|
|
|
- ./var/log/init:${MQSERVER_LOG_INIT_DIR}
|
|
|
|
- ./var/log/supervisor:${MQSERVER_LOG_SV_DIR}
|
|
|
|
|
2024-09-09 23:59:51 +02:00
|
|
|
ports:
|
2024-11-12 21:52:33 +01:00
|
|
|
- "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}"
|