2024-11-11 10:50:01 +01:00
|
|
|
# Rx3-Docker/PHP-Apache Docker Image
|
2024-08-22 14:26:42 +02:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-12-21 11:36:21 +01:00
|
|
|
name: ${HOST_NAME_PREFIX}
|
2024-08-24 12:57:19 +02:00
|
|
|
|
2024-08-22 14:26:42 +02:00
|
|
|
services:
|
2024-08-24 12:57:19 +02:00
|
|
|
|
2024-12-21 11:36:21 +01:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-08-22 14:26:42 +02:00
|
|
|
webapp:
|
2024-12-21 11:36:21 +01:00
|
|
|
container_name: ${WA_HOST_NAME}
|
|
|
|
hostname: ${WA_HOST_NAME}
|
2024-08-26 22:02:50 +02:00
|
|
|
|
2024-12-21 11:36:21 +01:00
|
|
|
image: ${WA_IMG_URL}
|
2024-08-24 12:57:19 +02:00
|
|
|
|
2024-08-22 14:26:42 +02:00
|
|
|
build:
|
|
|
|
args:
|
2024-12-21 11:36:21 +01:00
|
|
|
IMG_NAME: ${WA_IMG_URL}
|
|
|
|
IMG_NAME_FULL: ${WA_IMG_NAME_FULL}
|
|
|
|
IMG_VERSION: ${WA_IMG_VERSION}
|
|
|
|
IMG_MAINTAINER: ${WA_IMG_MAINTAINER}
|
|
|
|
IMG_FROM_URL: ${WA_IMG_FROM_URL}
|
|
|
|
|
|
|
|
APACHE_DOC_ROOT: ${WA_DOC_ROOT}
|
|
|
|
APACHE_LOG_DIR: ${WA_LOG_MAIN_INT}
|
|
|
|
APACHE_PORT: ${WA_PORT_MAIN_INT}
|
|
|
|
|
|
|
|
restart: unless-stopped
|
2024-08-24 12:57:19 +02:00
|
|
|
|
|
|
|
environment:
|
2024-12-21 11:36:21 +01:00
|
|
|
APACHE_UID: ${WA_USER_ID}
|
|
|
|
APACHE_GID: ${WA_GROUP_ID}
|
|
|
|
APACHE_DOC_ROOT: ${WA_DOC_ROOT}
|
2024-11-11 10:50:01 +01:00
|
|
|
|
|
|
|
healthcheck:
|
2024-12-21 11:36:21 +01:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:${WA_PORT_MAIN_INT}"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
2024-08-24 12:57:19 +02:00
|
|
|
|
2024-11-11 23:41:36 +01:00
|
|
|
volumes:
|
2024-12-21 11:36:21 +01:00
|
|
|
- ./${WA_LIB_EXT}:${WA_LIB_INT}
|
|
|
|
- ./${WA_LOG_INIT_EXT}:${WA_LOG_INIT_INT}
|
|
|
|
- ./${WA_LOG_SV_EXT}:${WA_LOG_SV_INT}
|
|
|
|
- ./${WA_LOG_MAIN_EXT}:${WA_LOG_MAIN_INT}
|
|
|
|
|
2024-08-22 14:26:42 +02:00
|
|
|
ports:
|
2024-12-21 11:36:21 +01:00
|
|
|
- "127.0.0.1:${WA_PORT_SV_EXT}:${WA_PORT_SV_INT}"
|
|
|
|
- "127.0.0.1:${WA_PORT_MAIN_EXT}:${WA_PORT_MAIN_INT}"
|