fixes
This commit is contained in:
parent
80e8a2ac4e
commit
68596649d4
@ -7,16 +7,19 @@ 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.tls=true
|
||||
- traefik.http.routers.api-gateway.entryPoints=https
|
||||
- traefik.http.routers.api-gateway.service=api-gateway
|
||||
- traefik.http.services.api-gateway.loadbalancer.server.scheme=http
|
||||
- traefik.http.services.api-gateway.loadbalancer.server.port=8080
|
||||
- traefik.tls.certificates.certfile=/certs/client.cert
|
||||
- traefik.tls.certificates.keyfile=/certs/client.key
|
||||
# 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"
|
||||
volumes:
|
||||
- ./certs/api-gateway:/etc/traefik/certs
|
||||
|
||||
@ -25,22 +28,22 @@ services:
|
||||
hostname: registry.egommerce.pbiernat.dev
|
||||
environment:
|
||||
- APP_DOMAIN=registry.egommerce.pbiernat.dev
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# - traefik.http.routers.api-registry.rule=PathPrefix(`/admin/registry`)
|
||||
- traefik.http.routers.api-registry.rule=Headers(`X-API-SERVICE`, `admin-registry`)
|
||||
- traefik.http.routers.api-registry.tls=true
|
||||
- traefik.http.routers.api-registry.tls.domains[0].main=egommerce.pbiernat.dev
|
||||
- traefik.http.routers.api-registry.entryPoints=https
|
||||
- traefik.http.routers.api-registry.service=api-registry
|
||||
- traefik.http.routers.api-registry.middlewares=registry-stripprefix
|
||||
- traefik.http.services.api-registry.loadbalancer.server.scheme=http
|
||||
- traefik.http.services.api-registry.loadbalancer.server.port=8500
|
||||
- traefik.http.middlewares.registry-stripprefix.stripprefix.prefixes=/admin/registry
|
||||
- traefik.tls.certificates.certfile=/certs/client.cert
|
||||
- traefik.tls.certificates.keyfile=/certs/client.key
|
||||
volumes:
|
||||
- ./certs/api-gateway:/certs
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.api-registry.rule=PathPrefix(`/admin/registry`)"
|
||||
# - "traefik.http.routers.api-registry.rule=Headers(`X-API-SERVICE`, `admin-registry`)"
|
||||
# - "traefik.http.routers.api-registry.tls=true"
|
||||
# - "traefik.http.routers.api-registry.tls.domains[0].main=egommerce.pbiernat.dev"
|
||||
# - "traefik.http.routers.api-registry.entryPoints=https"
|
||||
# - "traefik.http.routers.api-registry.service=api-registry"
|
||||
# - "traefik.http.routers.api-registry.middlewares=registry-stripprefix"
|
||||
# - "traefik.http.services.api-registry.loadbalancer.server.scheme=http"
|
||||
# - "traefik.http.services.api-registry.loadbalancer.server.port=8500"
|
||||
# - "traefik.http.middlewares.registry-stripprefix.stripprefix.prefixes=/admin/registry"
|
||||
# - "traefik.tls.certificates.certfile=/certs/client.cert"
|
||||
# - "traefik.tls.certificates.keyfile=/certs/client.key"
|
||||
# volumes:
|
||||
# - ./certs/api-gateway:/certs
|
||||
|
||||
api-eventbus:
|
||||
image: git.pbiernat.dev/egommerce/api-eventbus:dev
|
||||
@ -50,21 +53,21 @@ services:
|
||||
- RABBITMQ_NODENAME=api-eventbus
|
||||
# - RABBITMQ_DEFAULT_USER = admin
|
||||
# - RABBITMQ_DEFAULT_PASS = passw123
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.api-eventbus.rule=PathPrefix(`/admin/eventbus`)
|
||||
- traefik.http.routers.api-eventbus.tls=true
|
||||
- traefik.http.routers.api-eventbus.tls.domains[0].main=egommerce.pbiernat.dev
|
||||
- traefik.http.routers.api-eventbus.entryPoints=https
|
||||
- traefik.http.routers.api-eventbus.service=api-eventbus
|
||||
- traefik.http.routers.api-eventbus.middlewares=eventbus-stripprefix
|
||||
- traefik.http.services.api-eventbus.loadbalancer.server.scheme=http
|
||||
- traefik.http.services.api-eventbus.loadbalancer.server.port=15672
|
||||
- traefik.http.middlewares.eventbus-stripprefix.stripprefix.prefixes=/admin/eventbus
|
||||
- traefik.tls.certificates.certfile=/certs/client.cert
|
||||
- traefik.tls.certificates.keyfile=/certs/client.key
|
||||
volumes:
|
||||
- ./certs/api-gateway:/certs
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.http.routers.api-eventbus.rule=PathPrefix(`/admin/eventbus`)"
|
||||
# - "traefik.http.routers.api-eventbus.tls=true"
|
||||
# - "traefik.http.routers.api-eventbus.tls.domains[0].main=egommerce.pbiernat.dev"
|
||||
# - "traefik.http.routers.api-eventbus.entryPoints=https"
|
||||
# - "traefik.http.routers.api-eventbus.service=api-eventbus"
|
||||
# - "traefik.http.routers.api-eventbus.middlewares=eventbus-stripprefix"
|
||||
# - "traefik.http.services.api-eventbus.loadbalancer.server.scheme=http"
|
||||
# - "traefik.http.services.api-eventbus.loadbalancer.server.port=15672"
|
||||
# - "traefik.http.middlewares.eventbus-stripprefix.stripprefix.prefixes=/admin/eventbus"
|
||||
# # - "traefik.tls.certificates.certfile=/certs/client.cert"
|
||||
# # - "traefik.tls.certificates.keyfile=/certs/client.key"
|
||||
# volumes:
|
||||
# - ./certs/api-gateway:/certs
|
||||
|
||||
api-logger:
|
||||
image: git.pbiernat.dev/egommerce/api-logger:dev
|
||||
|
Loading…
Reference in New Issue
Block a user