gateway command fix
This commit is contained in:
parent
5bd2f273a9
commit
317d1a871b
@ -3,12 +3,15 @@ version: "3.9"
|
|||||||
services:
|
services:
|
||||||
api-gateway:
|
api-gateway:
|
||||||
image: git.pbiernat.dev/egommerce/api-gateway:latest
|
image: git.pbiernat.dev/egommerce/api-gateway:latest
|
||||||
|
# command:
|
||||||
|
# - '--providers.consulcatalog.refreshinterval=5s' # FIXME only on config option: static/env/cli must be selected
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=api-gateway
|
- APP_NAME=api-gateway
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
|
- API_REGISTRY_REFRESH_INTERVAL=5s
|
||||||
networks:
|
networks:
|
||||||
- api-gateway-network
|
- api-gateway-network
|
||||||
- api-logger-network
|
# - api-logger-network # TODO
|
||||||
- identity-svc-network
|
- identity-svc-network
|
||||||
- basket-svc-network
|
- basket-svc-network
|
||||||
- catalog-svc-network
|
- catalog-svc-network
|
||||||
@ -21,15 +24,19 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- APP_NAME=api-registry
|
- APP_NAME=api-registry
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
# command: "consul agent -config-dir=/consul/config"
|
volumes:
|
||||||
|
- registry_data:/consul/data
|
||||||
networks:
|
networks:
|
||||||
- api-registry-network
|
- api-registry-network
|
||||||
- api-logger-network
|
# - api-logger-network # TODO
|
||||||
- api-gateway-network
|
- api-gateway-network
|
||||||
- identity-svc-network
|
- identity-svc-network
|
||||||
- basket-svc-network
|
- basket-svc-network
|
||||||
- catalog-svc-network
|
- catalog-svc-network
|
||||||
- order-svc-network
|
- order-svc-network
|
||||||
|
- basket-worker-network
|
||||||
|
- catalog-worker-network
|
||||||
|
- order-worker-network
|
||||||
|
|
||||||
api-eventbus:
|
api-eventbus:
|
||||||
image: git.pbiernat.dev/egommerce/api-eventbus:latest
|
image: git.pbiernat.dev/egommerce/api-eventbus:latest
|
||||||
@ -38,8 +45,8 @@ services:
|
|||||||
- APP_NAME=api-eventbus
|
- APP_NAME=api-eventbus
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
volumes:
|
volumes:
|
||||||
- rabbitmq_data:/var/lib/rabbitmq
|
- eventbus_data:/var/lib/rabbitmq
|
||||||
- rabbitmq_logs:/var/log/rabbitmq
|
- eventbus_logs:/var/log/rabbitmq
|
||||||
# labels:
|
# labels:
|
||||||
# - "traefik.enable=true"
|
# - "traefik.enable=true"
|
||||||
# - "traefik.tcp.routers.eventbus-svc.rule=HostSNI(`*`)"
|
# - "traefik.tcp.routers.eventbus-svc.rule=HostSNI(`*`)"
|
||||||
@ -101,6 +108,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- APP_NAME=identity-svc
|
- APP_NAME=identity-svc
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
|
- APP_KV_NAMESPACE
|
||||||
- DATABASE_URL
|
- DATABASE_URL
|
||||||
- MONGODB_URL
|
- MONGODB_URL
|
||||||
- EVENTBUS_URL
|
- EVENTBUS_URL
|
||||||
@ -116,6 +124,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- APP_NAME=basket-svc
|
- APP_NAME=basket-svc
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
|
- APP_KV_NAMESPACE
|
||||||
- DATABASE_URL
|
- DATABASE_URL
|
||||||
- MONGODB_URL
|
- MONGODB_URL
|
||||||
- EVENTBUS_URL
|
- EVENTBUS_URL
|
||||||
@ -131,6 +140,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- APP_NAME=catalog-svc
|
- APP_NAME=catalog-svc
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
|
- APP_KV_NAMESPACE
|
||||||
- DATABASE_URL
|
- DATABASE_URL
|
||||||
- MONGODB_URL
|
- MONGODB_URL
|
||||||
- EVENTBUS_URL
|
- EVENTBUS_URL
|
||||||
@ -146,6 +156,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- APP_NAME=order-svc
|
- APP_NAME=order-svc
|
||||||
- APP_DOMAIN
|
- APP_DOMAIN
|
||||||
|
- APP_KV_NAMESPACE
|
||||||
- DATABASE_URL
|
- DATABASE_URL
|
||||||
- MONGODB_URL
|
- MONGODB_URL
|
||||||
- EVENTBUS_URL
|
- EVENTBUS_URL
|
||||||
@ -161,6 +172,7 @@ services:
|
|||||||
image: git.pbiernat.dev/egommerce/basket-worker:latest
|
image: git.pbiernat.dev/egommerce/basket-worker:latest
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=basket-worker
|
- APP_NAME=basket-worker
|
||||||
|
- APP_KV_NAMESPACE
|
||||||
- DATABASE_URL
|
- DATABASE_URL
|
||||||
- MONGODB_URL
|
- MONGODB_URL
|
||||||
- EVENTBUS_URL
|
- EVENTBUS_URL
|
||||||
@ -202,8 +214,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
postgres_data: ~
|
postgres_data: ~
|
||||||
mongodb_data: ~
|
mongodb_data: ~
|
||||||
rabbitmq_data: ~
|
registry_data: ~
|
||||||
rabbitmq_logs: ~
|
eventbus_data: ~
|
||||||
|
eventbus_logs: ~
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
api-gateway-network:
|
api-gateway-network:
|
||||||
|
Loading…
Reference in New Issue
Block a user