--- services: coredns-web-ui: image: git.bjphoster.com/source/coredns-web-ui:${CWUI_VERSION} restart: unless-stopped stop_grace_period: 30s environment: - DB_HOST=${CWUI_DB_HOST} - DB_PORT=${CWUI_DB_PORT} - DB_USER=${CWUI_DB_USER} - DB_PASSWORD=${CWUI_DB_PASSWORD} - DB_NAME=${CWUI_DB_NAME} - DB_WEBUI_NAME=${CWUI_DB_WEBUI_NAME:-${CWUI_DB_NAME}} - DB_TLS=${CWUI_DB_TLS} - DB_TABLE_PREFIX=${CWUI_DB_TABLE_PREFIX} - HTTP_ADDR=0.0.0.0 - HTTP_PORT=${TRAEFIK_SERVICE_PORT} - LOG_LEVEL=${CWUI_LOG_LEVEL} - APP_NAME=${CWUI_APP_NAME} - COOKIE_SECURE=${CWUI_COOKIE_SECURE} - SESSION_IDLE_TIMEOUT=${CWUI_SESSION_IDLE_TIMEOUT} - SESSION_MAX_AGE=${CWUI_SESSION_MAX_AGE} - TRUSTED_PROXIES=${CWUI_TRUSTED_PROXIES} labels: ### Section Træfik - traefik.enable=${TRAEFIK_ENABLED} - traefik.docker.network=${TRAEFIK_NETWORK} # HTTPS - traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https # configure the exposed service - traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_MIDDLEWARES} - traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE} # enable TLS and its certificate provider - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED} - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER} # specify a service so a custom port can be used - traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT} networks: - traefik networks: traefik: external: true name: ${TRAEFIK_NETWORK}