50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
# Rx3-Docker/PHP-Apache Docker Image
|
|
#-------------------------------------------------------------------------------
|
|
|
|
name: ${HOST_NAME_PREFIX}
|
|
|
|
services:
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
webapp:
|
|
container_name: ${WA_HOST_NAME}
|
|
hostname: ${WA_HOST_NAME}
|
|
|
|
image: ${WA_IMG_URL}
|
|
|
|
build:
|
|
args:
|
|
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
|
|
|
|
environment:
|
|
APACHE_UID: ${WA_USER_ID}
|
|
APACHE_GID: ${WA_GROUP_ID}
|
|
APACHE_DOC_ROOT: ${WA_DOC_ROOT}
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:${WA_PORT_MAIN_INT}"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
|
|
volumes:
|
|
- ./${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}
|
|
|
|
ports:
|
|
- "127.0.0.1:${WA_PORT_SV_EXT}:${WA_PORT_SV_INT}"
|
|
- "127.0.0.1:${WA_PORT_MAIN_EXT}:${WA_PORT_MAIN_INT}"
|