2024-11-11 19:25:48 +01:00
|
|
|
# Rx3-Docker/Tools Docker Image
|
2024-09-04 16:30:27 +02:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-11-11 19:25:48 +01:00
|
|
|
name: ${IMG_NAME}
|
2024-09-04 16:30:27 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
2024-10-29 20:06:35 +01:00
|
|
|
webtools:
|
2024-11-11 19:25:48 +01:00
|
|
|
container_name: ${IMG_NAME}
|
|
|
|
hostname: ${IMG_NAME}
|
2024-09-04 16:30:27 +02:00
|
|
|
|
2024-11-11 19:25:48 +01:00
|
|
|
image: ${IMG_URL}
|
2024-09-04 16:30:27 +02:00
|
|
|
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2024-11-11 19:25:48 +01:00
|
|
|
IMG_NAME: ${IMG_NAME}
|
2024-11-11 23:55:12 +01:00
|
|
|
IMG_NAME_FULL: ${IMG_NAME_FULL}
|
2024-11-11 19:25:48 +01:00
|
|
|
IMG_VERSION: ${IMG_VERSION}
|
|
|
|
IMG_MAINTAINER: ${IMG_MAINTAINER}
|
|
|
|
IMG_FROM_URL: ${IMG_FROM_URL}
|
2024-11-11 23:55:12 +01:00
|
|
|
|
|
|
|
APACHE_DOC_ROOT: ${WEBTOOLS_DOC_ROOT}
|
2024-09-04 16:30:27 +02:00
|
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
environment:
|
2024-11-11 23:55:12 +01:00
|
|
|
APACHE_DOC_ROOT: ${WEBTOOLS_DOC_ROOT}
|
2024-11-11 19:25:48 +01:00
|
|
|
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}
|
2024-09-04 16:30:27 +02:00
|
|
|
|
2024-11-11 23:55:12 +01:00
|
|
|
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}
|
|
|
|
|
2024-09-04 16:30:27 +02:00
|
|
|
ports:
|
2024-11-11 19:25:48 +01:00
|
|
|
- "127.0.0.1:${WEBTOOLS_PORT_SV_EXT}:${WEBTOOLS_PORT_SV_INT}"
|
|
|
|
- "127.0.0.1:${WEBTOOLS_PORT_MAIN_EXT}:${WEBTOOLS_PORT_MAIN_INT}"
|