tools/compose.yaml

51 lines
1.6 KiB
YAML
Raw Normal View History

# Rx3-Docker/Tools Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
services:
webtools:
container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
image: ${IMG_URL}
build:
context: .
args:
IMG_NAME: ${IMG_NAME}
IMG_NAME_FULL: ${IMG_NAME_FULL}
IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_FROM_URL: ${IMG_FROM_URL}
APACHE_DOC_ROOT: ${WEBTOOLS_DOC_ROOT}
restart: unless-stopped
environment:
APACHE_DOC_ROOT: ${WEBTOOLS_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}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${WEBTOOLS_PORT_MAIN_INT}"]
interval: 10s
timeout: 3s
retries: 3
volumes:
# - ./var/www/html:${WEBTOOLS_DOC_ROOT}
- ./var/log/init:${WEBTOOLS_LOG_INIT_DIR}
- ./var/log/supervisor:${WEBTOOLS_LOG_SV_DIR}
- ./var/log/httpd:${WEBTOOLS_LOG_HTTPD_DIR}
ports:
- "127.0.0.1:${WEBTOOLS_PORT_SV_EXT}:${WEBTOOLS_PORT_SV_INT}"
- "127.0.0.1:${WEBTOOLS_PORT_MAIN_EXT}:${WEBTOOLS_PORT_MAIN_INT}"