Init testing branch

This commit is contained in:
Piotr Biernat 2023-06-13 17:07:05 +02:00
parent a3428542e7
commit 8fba43e14c
2 changed files with 142 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
.idea/
*.local.yml
#*.local.yml

View File

@ -0,0 +1,141 @@
version: "3.9"
services:
api-gateway:
# command: ["--providers.consulcatalog.refreshinterval=5s"]
# ^^^^^^ FIXME use config option: static/env/cli must be selected
environment:
- APP_DOMAIN=egommerce.local
ports:
- '8443:443'
- '8888:8080'
- '5672:5672'
api-registry:
command: ["-ui-content-path=/registry"]
environment:
- APP_DOMAIN=registry.egommerce.local
ports:
- '8500: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:
- '18084: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=db.egommerce.local
ports:
- '5432:5432'
mongo-db:
environment:
- APP_DOMAIN=mongodb.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