php-apache/compose.yaml

37 lines
819 B
YAML
Raw Normal View History

2024-08-22 14:26:42 +02:00
# Rx3 PHP Apache Mageia-9 Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
2024-08-22 14:26:42 +02:00
services:
2024-08-22 14:26:42 +02:00
webapp:
container_name: ${IMG_NAME}
image: ${IMG_URL}
2024-08-22 14:26:42 +02:00
build:
context: .
args:
- IMG_NAME=${IMG_NAME}
- IMG_FULL_NAME=${IMG_FULL_NAME}
2024-08-22 14:26:42 +02:00
- IMG_VERSION=${IMG_VERSION}
- IMG_MAINTAINER=${IMG_MAINTAINER}
- IMG_URL_PREFIX=${IMG_URL_PREFIX}
2024-08-22 14:26:42 +02:00
restart: unless-stopped
environment:
APACHE_UID: ${APACHE_UID}
APACHE_GID: ${APACHE_GID}
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
# volumes:
# - ./var/www/html:/var/www/html
2024-08-22 14:26:42 +02:00
network_mode: bridge
2024-08-22 14:26:42 +02:00
ports:
- "127.0.0.1:${WEBAPP_SV_PORT}:9001"
- "127.0.0.1:${WEBAPP_PORT}:80"