php-apache/compose.yaml
Arnaud G. GIBERT 4797d18971 - Move & Rename repo from Rx3/PHP-Apache-MGA9 to Rx3-Docker/PHP-Apache,
- New version naming standard,
- Now use docker_tools for .env building,
- Use now rx3-docker/server:1.2.0-mga9 image.
2024-11-11 10:50:01 +01:00

43 lines
1.3 KiB
YAML

# Rx3-Docker/PHP-Apache Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
services:
webapp:
container_name: ${IMG_NAME}
hostname: ${IMG_NAME}
image: ${IMG_URL}
build:
context: .
args:
IMG_NAME: ${IMG_NAME}
IMG_FULL_NAME: ${IMG_NAME_FULL}
IMG_VERSION: ${IMG_VERSION}
IMG_MAINTAINER: ${IMG_MAINTAINER}
IMG_FROM_URL: ${IMG_FROM_URL}
APACHE_PORT: ${WEBAPP_PORT_MAIN_INT}
restart: unless-stopped
environment:
APACHE_UID: ${APACHE_UID}
APACHE_GID: ${APACHE_GID}
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${WEBAPP_PORT_MAIN_INT}"]
interval: 10s
timeout: 3s
retries: 3
# volumes:
# - ./var/www/html:/var/www/html
ports:
- "127.0.0.1:${WEBAPP_PORT_SV_EXT}:${WEBAPP_PORT_SV_INT}"
- "127.0.0.1:${WEBAPP_PORT_MAIN_EXT}:${WEBAPP_PORT_MAIN_INT}"