# Rx3 Proto Docker Image #------------------------------------------------------------------------------- name: ${HOST_NAME_PREFIX} services: #------------------------------------------------------------------------------- kafka: container_name: ${KAFKA_HOST_NAME} hostname: ${KAFKA_HOST_NAME} image: ${KAFKA_IMG_URL} build: args: IMG_NAME: ${KAFKA_IMG_URL} IMG_NAME_FULL: ${KAFKA_IMG_NAME_FULL} IMG_VERSION: ${KAFKA_IMG_VERSION} IMG_MAINTAINER: ${KAFKA_IMG_MAINTAINER} IMG_FROM_URL: ${KAFKA_IMG_FROM_URL} KAFKA_PORT: ${KAFKA_PORT_MAIN_INT} restart: unless-stopped environment: KAFKA_UID: ${KAFKA_USER_ID} KAFKA_GID: ${KAFKA_GROUP_ID} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:${KAFKA_PORT_MAIN_INT}"] interval: 30s timeout: 10s start_period: 60s start_interval: 10s retries: 30 volumes: - ./${KAFKA_LIB_EXT}:${KAFKA_LIB_INT} - ./${KAFKA_LOG_INIT_EXT}:${KAFKA_LOG_INIT_INT} - ./${KAFKA_LOG_SV_EXT}:${KAFKA_LOG_SV_INT} - ./${KAFKA_LOG_MAIN_EXT}:${KAFKA_LOG_MAIN_INT} ports: - "127.0.0.1:${KAFKA_PORT_SV_EXT}:${KAFKA_PORT_SV_INT}" - "127.0.0.1:${KAFKA_PORT_MAIN_EXT}:${KAFKA_PORT_MAIN_INT}"