2024-11-24 12:48:40 +01:00
|
|
|
# Rx3-Docker/Kafka Docker Image
|
2024-11-18 18:55:40 +01:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
name: ${HOST_NAME_PREFIX}
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-11-24 12:48:40 +01:00
|
|
|
topic-server:
|
|
|
|
container_name: ${TS_HOST_NAME}
|
|
|
|
hostname: ${TS_HOST_NAME}
|
2024-11-18 18:55:40 +01:00
|
|
|
|
2024-11-24 12:48:40 +01:00
|
|
|
image: ${TS_IMG_URL}
|
2024-11-18 18:55:40 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
args:
|
2024-11-24 12:48:40 +01:00
|
|
|
IMG_NAME: ${TS_IMG_URL}
|
|
|
|
IMG_NAME_FULL: ${TS_IMG_NAME_FULL}
|
|
|
|
IMG_VERSION: ${TS_IMG_VERSION}
|
|
|
|
IMG_MAINTAINER: ${TS_IMG_MAINTAINER}
|
|
|
|
IMG_FROM_URL: ${TS_IMG_FROM_URL}
|
2024-11-18 18:55:40 +01:00
|
|
|
|
2024-11-24 12:48:40 +01:00
|
|
|
KAFKA_PORT: ${TS_PORT_MAIN_INT}
|
2024-11-18 18:55:40 +01:00
|
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
environment:
|
2024-11-24 12:48:40 +01:00
|
|
|
KAFKA_UID: ${TS_USER_ID}
|
|
|
|
KAFKA_GID: ${TS_GROUP_ID}
|
2024-11-18 18:55:40 +01:00
|
|
|
|
|
|
|
healthcheck:
|
2024-11-24 12:48:40 +01:00
|
|
|
test: /opt/appl/kafka/bin/kafka-cluster.sh cluster-id --bootstrap-server localhost:${TS_PORT_MAIN_INT}
|
2024-11-18 18:55:40 +01:00
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
start_period: 60s
|
|
|
|
start_interval: 10s
|
|
|
|
retries: 30
|
|
|
|
|
|
|
|
volumes:
|
2024-11-24 12:48:40 +01:00
|
|
|
- ./${TS_LIB_EXT}:${TS_LIB_INT}
|
|
|
|
- ./${TS_LOG_INIT_EXT}:${TS_LOG_INIT_INT}
|
|
|
|
- ./${TS_LOG_SV_EXT}:${TS_LOG_SV_INT}
|
|
|
|
- ./${TS_LOG_MAIN_EXT}:${TS_LOG_MAIN_INT}
|
2024-11-18 18:55:40 +01:00
|
|
|
|
|
|
|
ports:
|
2024-11-24 12:48:40 +01:00
|
|
|
- "127.0.0.1:${TS_PORT_SV_EXT}:${TS_PORT_SV_INT}"
|
|
|
|
- "127.0.0.1:${TS_PORT_MAIN_EXT}:${TS_PORT_MAIN_INT}"
|