Arnaud G. GIBERT
9736f81016
- Remove test init service, - Minor compose / dockerfile args & structure improvements.
34 lines
737 B
YAML
34 lines
737 B
YAML
# Rx3 PHP Apache Mageia-9 Docker Image
|
|
#-------------------------------------------------------------------------------
|
|
|
|
name: ${IMG_NAME}
|
|
|
|
services:
|
|
|
|
webapp:
|
|
container_name: ${IMG_NAME}
|
|
|
|
image: ${IMG_URL}
|
|
|
|
build:
|
|
context: .
|
|
args:
|
|
- IMG_NAME=${IMG_NAME}
|
|
- IMG_FULL_NAME=${IMG_FULL_NAME}
|
|
- IMG_VERSION=${IMG_VERSION}
|
|
- IMG_MAINTAINER=${IMG_MAINTAINER}
|
|
- IMG_URL_PREFIX=${IMG_URL_PREFIX}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
APACHE_UID: ${APACHE_UID}
|
|
APACHE_GID: ${APACHE_GID}
|
|
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
|
|
|
|
network_mode: bridge
|
|
|
|
ports:
|
|
- "127.0.0.1:9011:9001"
|
|
- "127.0.0.1:8080:80"
|