49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
# Rx3-Docker/Kafka Docker Image
|
|
#-------------------------------------------------------------------------------
|
|
|
|
name: ${HOST_NAME_PREFIX}
|
|
|
|
services:
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
topic-server:
|
|
container_name: ${TS_HOST_NAME}
|
|
hostname: ${TS_HOST_NAME}
|
|
|
|
image: ${TS_IMG_URL}
|
|
|
|
build:
|
|
args:
|
|
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}
|
|
|
|
KAFKA_PORT: ${TS_PORT_MAIN_INT}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
KAFKA_UID: ${TS_USER_ID}
|
|
KAFKA_GID: ${TS_GROUP_ID}
|
|
|
|
healthcheck:
|
|
test: /opt/appl/kafka/bin/kafka-cluster.sh cluster-id --bootstrap-server localhost:${TS_PORT_MAIN_INT}
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 60s
|
|
start_interval: 10s
|
|
retries: 30
|
|
|
|
volumes:
|
|
- ./${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}
|
|
|
|
ports:
|
|
- "127.0.0.1:${TS_PORT_SV_EXT}:${TS_PORT_SV_INT}"
|
|
- "127.0.0.1:${TS_PORT_MAIN_EXT}:${TS_PORT_MAIN_INT}"
|