2023-06-13 17:07:05 +02:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
api-gateway:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=egommerce.local
|
2023-06-25 00:55:25 +02:00
|
|
|
# - APP_PORT=40056
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-25 00:52:27 +02:00
|
|
|
- '40056: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-25 02:01:28 +02:00
|
|
|
command: ["-ui-content-path=/registry", "-log-level=DEBUG"]
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=registry.egommerce.local
|
2023-06-25 00:55:25 +02:00
|
|
|
# - APP_PORT=40058
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-24 16:37:30 +02:00
|
|
|
- '40058:8500'
|
2023-06-24 16:38:06 +02:00
|
|
|
- '8600:8600/udp'
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
api-eventbus:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=eventbus.egommerce.local
|
2023-06-25 00:55:25 +02:00
|
|
|
# - APP_PORT=40059
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=redis.egommerce.local
|
|
|
|
command: ["redis-server", "/etc/redis.conf", "--requirepass", "12345678"]
|
|
|
|
ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 6379:6379
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
api-logger:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=logger.egommerce.local
|
|
|
|
ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 24224:24224
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
# api-prometheus:
|
|
|
|
# environment:
|
|
|
|
# - APP_DOMAIN=prometheus.egommerce.local
|
|
|
|
# ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
# - 9090:9090
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
# api-grafana:
|
|
|
|
# environment:
|
|
|
|
# - APP_DOMAIN=grafana.egommerce.local
|
|
|
|
# ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
# - 3000:3000
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
postgres-db:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
2023-06-13 21:28:10 +02:00
|
|
|
- APP_DOMAIN=postgres.egommerce.local
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 5432:5432
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
mongo-db:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
2023-06-13 21:28:10 +02:00
|
|
|
- APP_DOMAIN=mongo.egommerce.local
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 27017:27017
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
identity-svc:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 8080:80
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
basket-svc:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 8001:80
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
catalog-svc:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 8002:80
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
order-svc:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 8003:80
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
pricing-svc:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 8004:80
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
# Workers (EventBus)
|
|
|
|
basket-worker:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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:
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
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
|