Arnaud G. GIBERT
eef8d33716
- Variabilization of external server ports in env & compose file, - Now use docker_tools for .env building.
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Rx3 Tools 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}
|
|
- APACHE_DOC_ROOT=${APACHE_DOC_ROOT}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
|
|
POSTGRESQL_SERVER_NAME: ${POSTGRESQL_SERVER_NAME}
|
|
POSTGRESQL_HOST: ${POSTGRESQL_HOST}
|
|
POSTGRESQL_PORT: ${POSTGRESQL_PORT}
|
|
MARIADB_SERVER_NAME: ${MARIADB_SERVER_NAME}
|
|
MARIADB_HOST: ${MARIADB_HOST}
|
|
MARIADB_PORT: ${MARIADB_PORT}
|
|
|
|
network_mode: bridge
|
|
|
|
ports:
|
|
- "127.0.0.1:${WEBAPP_SV_PORT}:9001"
|
|
- "127.0.0.1:${WEBAPP_PORT}:80"
|