57 lines
2.0 KiB
YAML
57 lines
2.0 KiB
YAML
# Rx3-Docker/Tools Docker Image
|
|
#-------------------------------------------------------------------------------
|
|
|
|
name: ${HOST_NAME_PREFIX}
|
|
|
|
services:
|
|
|
|
webtools:
|
|
container_name: ${TOOLS_HOST_NAME}
|
|
hostname: ${TOOLS_HOST_NAME}
|
|
|
|
image: ${TOOLS_IMG_URL}
|
|
|
|
build:
|
|
context: .
|
|
args:
|
|
IMG_NAME: ${TOOLS_IMG_NAME}
|
|
IMG_NAME_FULL: ${TOOLS_IMG_NAME_FULL}
|
|
IMG_VERSION: ${TOOLS_IMG_VERSION}
|
|
IMG_MAINTAINER: ${TOOLS_IMG_MAINTAINER}
|
|
IMG_FROM_URL: ${TOOLS_IMG_FROM_URL}
|
|
|
|
APACHE_DOC_ROOT: ${TOOLS_DOC_ROOT}
|
|
REDPANDA_CONSOLE_PORT: ${TOOLS_PORT_ADMIN_INT}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
APACHE_DOC_ROOT: ${TOOLS_DOC_ROOT}
|
|
|
|
POSTGRESQL_SERVER_NAME: ${POSTGRESQL_SERVER_NAME}
|
|
POSTGRESQL_HOST: ${POSTGRESQL_HOST}
|
|
POSTGRESQL_PORT: ${POSTGRESQL_PORT}
|
|
|
|
MARIADB_SERVER_NAME: ${MARIADB_SERVER_NAME}
|
|
MARIADB_HOST: ${MARIADB_HOST}
|
|
MARIADB_PORT: ${MARIADB_PORT}
|
|
|
|
KAFKA_BROKERS: ${KAFKA_HOST}:${KAFKA_PORT}
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:${TOOLS_PORT_MAIN_INT}"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
|
|
volumes:
|
|
# - ./var/www/html:${TOOLS_DOC_ROOT}
|
|
- .${TOOLS_LOG_INIT_EXT}:${TOOLS_LOG_INIT_INT}
|
|
- .${TOOLS_LOG_SV_EXT}:${TOOLS_LOG_SV_INT}
|
|
- .${TOOLS_LOG_HTTPD_EXT}:${TOOLS_LOG_HTTPD_INT}
|
|
|
|
ports:
|
|
- "127.0.0.1:${TOOLS_PORT_SV_EXT}:${TOOLS_PORT_SV_INT}"
|
|
- "127.0.0.1:${TOOLS_PORT_MAIN_EXT}:${TOOLS_PORT_MAIN_INT}"
|
|
- "127.0.0.1:${TOOLS_PORT_ADMIN_EXT}:${TOOLS_PORT_ADMIN_INT}"
|