react-spa-template/docker-compose.yml
2025-04-19 19:26:03 +02:00

20 lines
1.1 KiB
YAML

services:
merchant-operator-web:
build:
context: .
container_name: ${APP_CONTAINER_NAME:-merchant-operator-web}
environment:
- CLIENT_BASE_PATH=${CLIENT_BASE_PATH:-/}
- CLIENT_API_URL=${CLIENT_API_URL:-}
- CLIENT_APP_NAME=${CLIENT_APP_NAME:-App}
- CLIENT_DEBUG=${CLIENT_DEBUG:-false}
labels:
- "traefik.enable=true"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.rule=Host(`${APP_DOMAIN:-localhost}`) && PathPrefix(`${BASE_PATH:-/}`)"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.tls=${ENABLE_TLS:-false}"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.tls.certresolver=${CERT_RESOLVER:-letsencrypt}"
- "traefik.http.services.${APP_NAME:-merchant-operator-web}.loadbalancer.server.port=369"
- "traefik.http.routers.${APP_NAME:-merchant-operator-web}.middlewares=${APP_NAME:-merchant-operator-web}-strip"
- "traefik.http.middlewares.${APP_NAME:-merchant-operator-web}-strip.stripprefix.prefixes=${BASE_PATH:-/}"