2023-06-13 17:07:05 +02:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
api-gateway:
|
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=egommerce.local
|
|
|
|
ports:
|
|
|
|
- '8443:443'
|
2023-06-24 16:37:30 +02:00
|
|
|
- '40057:8080'
|
2023-06-13 17:07:05 +02:00
|
|
|
- '5672:5672'
|
|
|
|
|
|
|
|
api-registry:
|
2023-06-24 17:51:42 +02:00
|
|
|
command: ["-bootstrap=true", "-ui-content-path=/registry", -log-level=DEBUG]
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=registry.egommerce.local
|
|
|
|
ports:
|
2023-06-24 17:19:32 +02:00
|
|
|
- '8300:8300'
|
2023-06-24 16:37:30 +02:00
|
|
|
- '40058:8500'
|
2023-06-24 16:38:06 +02:00
|
|
|
- '8600:8600'
|
|
|
|
- '8600:8600/udp'
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
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:
|
2023-06-24 16:37:30 +02:00
|
|
|
- '40059:8084'
|
2023-06-13 17:07:05 +02:00
|
|
|
- '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:
|
2023-06-13 21:28:10 +02:00
|
|
|
- APP_DOMAIN=postgres.egommerce.local
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
|
|
|
- '5432:5432'
|
|
|
|
|
|
|
|
mongo-db:
|
|
|
|
environment:
|
2023-06-13 21:28:10 +02:00
|
|
|
- APP_DOMAIN=mongo.egommerce.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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
|