diff --git a/deploy/egommerce-stack.dev.yml b/deploy/egommerce-stack.dev.yml index e71b7fe..88e77db 100644 --- a/deploy/egommerce-stack.dev.yml +++ b/deploy/egommerce-stack.dev.yml @@ -7,19 +7,23 @@ services: hostname: egommerce.pbiernat.dev environment: - APP_DOMAIN=egommerce.pbiernat.dev - # labels: - # - "traefik.enable=true" - # - "traefik.http.routers.api-gateway.rule=PathPrefix(`/admin/gateway`)" - # - "traefik.http.routers.api-gateway.rule=Headers(`X-API-SERVICE`, `admin-gateway`)" - # - "traefik.http.routers.api-gateway.tls=true" - # - "traefik.http.routers.api-gateway.entryPoints=https" - # - "traefik.http.routers.api-gateway.service=api-gateway" - # - "traefik.http.routers.api-gateway.middlewares=gateway-stripprefix" - # - "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" + labels: + - "traefik.enable=true" + - "traefik.http.routers.api-gateway-dashboard.rule=PathPrefix(`/`)" + - "traefik.http.routers.api-gateway-dashboard.service=dashboard@internal" + - "traefik.http.routers.api-gateway-dashboard.middlewares=dashboard_redirect@internal,dashboard_stripprefix@internal" + - "traefik.http.routers.api-gateway-api.rule=PathPrefix(`/api`)" + - "traefik.http.routers.api-gateway-api.service=api@internal" + # - "traefik.http.routers.api-gateway-api.middlewares=PathPrefix(`/`)" + # - "traefik.http.routers.api-gateway.tls=true" + # - "traefik.http.routers.api-gateway.rule=Headers(`X-API-SERVICE`, `admin-gateway`)" + # - "traefik.http.routers.api-gateway.tls=true" + # - "traefik.http.routers.api-gateway.entryPoints=https" + # - "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: - ./certs/api-gateway:/etc/traefik/certs