This commit is contained in:
Piotr Biernat 2022-12-04 09:51:47 +01:00
parent 80e8a2ac4e
commit 68596649d4

View File

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