stack/deploy/egommerce-stack.dev.local.yml
2023-06-24 20:02:38 +02:00

141 lines
4.0 KiB
YAML

version: "3.9"
services:
api-gateway:
environment:
- APP_DOMAIN=egommerce.local
ports:
- '8443:443'
- '40057:8080'
- '5672:5672'
api-registry:
command: ["-bootstrap-expect=1", "-ui-content-path=/registry", -log-level=DEBUG]
environment:
- APP_DOMAIN=registry.egommerce.local
ports:
- '8300:8300'
- '40058:8500'
# - '8600:8600'
- '8600:8600/udp'
api-eventbus:
environment:
- APP_DOMAIN=eventbus.egommerce.local
labels:
- traefik.enable=true
- traefik.tcp.routers.eventbus.rule=HostSNI(`*`)
- traefik.tcp.routers.eventbus.entrypoints=rabbitmq
- traefik.tcp.routers.eventbus.service=eventbus
- traefik.tcp.services.eventbus.loadbalancer.server.port=5672
ports:
- '40059:8084'
- '15672:15672'
api-cache:
environment:
- APP_DOMAIN=redis.egommerce.local
command: ["redis-server", "/etc/redis.conf", "--requirepass", "12345678"]
ports:
- '6379:6379'
api-logger:
environment:
- APP_DOMAIN=logger.egommerce.local
ports:
- '24224:24224'
# api-prometheus:
# environment:
# - APP_DOMAIN=prometheus.egommerce.local
# ports:
# - '9090:9090'
# api-grafana:
# environment:
# - APP_DOMAIN=grafana.egommerce.local
# ports:
# - '3000:3000'
postgres-db:
environment:
- APP_DOMAIN=postgres.egommerce.local
ports:
- '5432:5432'
mongo-db:
environment:
- APP_DOMAIN=mongo.egommerce.local
ports:
- '27017:27017'
identity-svc:
environment:
- APP_DOMAIN=identity.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
ports:
- '8080:80'
basket-svc:
environment:
- APP_DOMAIN=basket.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
ports:
- '8001:80'
catalog-svc:
environment:
- APP_DOMAIN=catalog.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
ports:
- '8002:80'
order-svc:
environment:
- APP_DOMAIN=order.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
ports:
- '8003:80'
pricing-svc:
environment:
- APP_DOMAIN=pricing.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
ports:
- '8004:80'
# Workers (EventBus)
basket-worker:
environment:
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
catalog-worker:
environment:
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
pricing-worker:
environment:
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672
order-worker:
environment:
- DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017
- EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672