This commit is contained in:
Piotr Biernat 2022-12-04 10:24:57 +01:00
parent 68596649d4
commit dbc67e44f2

View File

@ -7,19 +7,23 @@ services:
hostname: egommerce.pbiernat.dev hostname: egommerce.pbiernat.dev
environment: environment:
- APP_DOMAIN=egommerce.pbiernat.dev - APP_DOMAIN=egommerce.pbiernat.dev
# labels: labels:
# - "traefik.enable=true" - "traefik.enable=true"
# - "traefik.http.routers.api-gateway.rule=PathPrefix(`/admin/gateway`)" - "traefik.http.routers.api-gateway-dashboard.rule=PathPrefix(`/`)"
# - "traefik.http.routers.api-gateway.rule=Headers(`X-API-SERVICE`, `admin-gateway`)" - "traefik.http.routers.api-gateway-dashboard.service=dashboard@internal"
# - "traefik.http.routers.api-gateway.tls=true" - "traefik.http.routers.api-gateway-dashboard.middlewares=dashboard_redirect@internal,dashboard_stripprefix@internal"
# - "traefik.http.routers.api-gateway.entryPoints=https" - "traefik.http.routers.api-gateway-api.rule=PathPrefix(`/api`)"
# - "traefik.http.routers.api-gateway.service=api-gateway" - "traefik.http.routers.api-gateway-api.service=api@internal"
# - "traefik.http.routers.api-gateway.middlewares=gateway-stripprefix" # - "traefik.http.routers.api-gateway-api.middlewares=PathPrefix(`/`)"
# - "traefik.http.services.api-gateway.loadbalancer.server.scheme=http" # - "traefik.http.routers.api-gateway.tls=true"
# - "traefik.http.services.api-gateway.loadbalancer.server.port=8080" # - "traefik.http.routers.api-gateway.rule=Headers(`X-API-SERVICE`, `admin-gateway`)"
# - "traefik.http.middlewares.gateway-stripprefix.stripprefix.prefixes=/admin/gateway" # - "traefik.http.routers.api-gateway.tls=true"
# - "traefik.tls.certificates.certfile=/etc/traefik/certs/client.cert" # - "traefik.http.routers.api-gateway.entryPoints=https"
# - "traefik.tls.certificates.keyfile=/etc/traefik/certs/client.key" # - "traefik.http.services.api-gateway.loadbalancer.server.scheme=http"
# - "traefik.http.services.api-gateway.loadbalancer.server.port=8080"
# - "traefik.http.middlewares.gateway-stripprefix.stripprefix.prefixes=/admin/gateway"
# - "traefik.tls.certificates.certfile=/etc/traefik/certs/client.cert"
# - "traefik.tls.certificates.keyfile=/etc/traefik/certs/client.key"
volumes: volumes:
- ./certs/api-gateway:/etc/traefik/certs - ./certs/api-gateway:/etc/traefik/certs