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:48:39 +02:00
|
|
|
# - APP_PORT=48443
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-25 03:34:58 +02:00
|
|
|
- 48443:443
|
|
|
|
- 48444:8080
|
2023-06-25 00:48:39 +02:00
|
|
|
# - 5672:5672
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
api-registry:
|
|
|
|
command: ["-ui-content-path=/registry"]
|
2023-06-25 00:48:39 +02:00
|
|
|
env_file: .env.local
|
2023-06-13 17:07:05 +02:00
|
|
|
environment:
|
|
|
|
- APP_DOMAIN=registry.egommerce.local
|
2023-06-25 00:48:39 +02:00
|
|
|
# - APP_PORT=48445
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-25 03:34:58 +02:00
|
|
|
- 48445:8500
|
|
|
|
- 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:48:39 +02:00
|
|
|
# - APP_PORT=48446
|
2023-06-13 17:07:05 +02:00
|
|
|
ports:
|
2023-06-25 00:48:39 +02:00
|
|
|
- 48446:8084
|
|
|
|
- 15672:15672
|
2023-06-13 17:07:05 +02:00
|
|
|
|
|
|
|
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
|