mantisbt/compose.yaml

110 lines
3.4 KiB
YAML

# Rx3-Docker/MantisBT Docker Image
#-------------------------------------------------------------------------------
name: ${HOST_NAME_PREFIX}
services:
database:
container_name: ${DB_HOST_NAME}
hostname: ${DB_HOST_NAME}
image: ${DB_IMG_URL}
restart: unless-stopped
environment:
POSTGRESQL_UID: ${DB_USER_ID}
POSTGRESQL_GID: ${DB_GROUP_ID}
POSTGRESQL_POSTGRES_PASSWORD: ${DB_POSTGRES_PASSWORD}
POSTGRESQL_DATABASE: ${DB_NAME}
POSTGRESQL_USER: ${DB_USER}
POSTGRESQL_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${DB_USER} -d ${DB_NAME}'"]
interval: 10s
timeout: 3s
retries: 3
volumes:
- ./${DB_LIB_EXT}:${DB_LIB_INT}
- ./${DB_LOG_INIT_EXT}:${DB_LOG_INIT_INT}
- ./${DB_LOG_SV_EXT}:${DB_LOG_SV_INT}
- ./${DB_LOG_MAIN_EXT}:${DB_LOG_MAIN_INT}
networks:
- appl
# ports:
# - "127.0.0.1:${DB_PORT_SV_EXT}:${DB_PORT_SV_INT}"
# - "127.0.0.1:${DB_PORT_MAIN_EXT}:${DB_PORT_MAIN_INT}"
#-------------------------------------------------------------------------------
webapp:
container_name: ${WA_HOST_NAME}
hostname: ${WA_HOST_NAME}
image: ${WA_IMG_URL}
build:
context: .
args:
IMG_NAME: ${WA_IMG_URL}
IMG_NAME_FULL: ${WA_IMG_NAME_FULL}
IMG_VERSION: ${WA_IMG_VERSION}
IMG_MAINTAINER: ${APPL_MAINTAINER}
IMG_FROM_URL: ${WA_IMG_FROM_URL}
restart: unless-stopped
depends_on:
database:
condition: service_healthy
environment:
SERVER_CROND_ENABLED: ${WA_CROND_ENABLED}
APACHE_UID: ${WA_USER_ID}
APACHE_GID: ${WA_GROUP_ID}
APACHE_DOC_ROOT: ${WA_APACHE_DOC_ROOT}
PHP_UPLOAD_LIMIT: ${WA_PHP_UPLOAD_LIMIT}
MANTISBT_ADMIN_ENABLED: ${WA_MANTISBT_ADMIN_ENABLED}
SMTP_SERVER: ${WA_SMTP_SERVER}
WINDOW_TITLE: ${WA_WINDOW_TITLE}
LOGO_IMG: ${WA_LOGO_IMG}
APPL_URL: ${WA_APPL_URL}
volumes:
- ./${WA_LOG_INIT_EXT}:${WA_LOG_INIT_INT}
- ./${WA_LOG_SV_EXT}:${WA_LOG_SV_INT}
- ./${WA_LOG_HTTPD_EXT}:${WA_LOG_HTTPD_INT}
- ./${WA_CONF_EXT}:${WA_CONF_INT}
- ./${WA_IMG_EXT}:${WA_IMG_INT}
networks:
- appl
# - internal
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}"
networks:
appl:
name: ${NETWORK_NAME}
driver: bridge
driver_opts:
com.docker.network.bridge.name: ${NETWORK_IF_NAME}
# ipam:
# config:
# - subnet: 10.2.33.0/24
# gateway: 10.2.33.254
# internal:
# name: mantisbt-squashtm-internal
# external: true