stack/deploy/egommerce-stack.dev.yml

134 lines
4.2 KiB
YAML
Raw Permalink Normal View History

2022-10-06 20:40:27 +02:00
version: "3.9"
services:
2022-11-30 02:20:48 +01:00
# INFRASTRUCTURE SERVICES
api-gateway:
image: git.pbiernat.dev/egommerce/api-gateway:dev
hostname: gw.egommerce.local
environment:
- APP_DOMAIN=gw.egommerce.local
2022-10-06 20:40:27 +02:00
ports:
2022-11-30 02:20:48 +01:00
- '8443:443'
- '8888:8080'
2022-10-06 20:40:27 +02:00
volumes:
2022-11-30 02:20:48 +01:00
- ./certs:/etc/traefik/certs
api-registry:
2022-12-02 22:03:33 +01:00
image: git.pbiernat.dev/egommerce/api-registry:dev
2022-11-30 02:20:48 +01:00
hostname: registry.egommerce.local
environment:
- APP_DOMAIN=registry.egommerce.local
ports:
- '8500:8500'
- '8600:8600'
- '8600:8600/udp'
api-eventbus:
image: git.pbiernat.dev/egommerce/api-eventbus:dev
hostname: eventbus.egommerce.local
2022-10-06 20:40:27 +02:00
environment:
2022-11-30 02:20:48 +01:00
- APP_DOMAIN=eventbus.egommerce.local
2022-12-02 22:03:33 +01:00
- RABBITMQ_NODENAME=api-eventbus
2022-11-30 02:20:48 +01:00
# - RABBITMQ_DEFAULT_USER = admin
# - RABBITMQ_DEFAULT_PASS = passw123
ports:
- 5672:5672
- 15672:15672
api-logger:
image: git.pbiernat.dev/egommerce/api-logger:dev
hostname: logger.egommerce.local
environment:
- APP_DOMAIN=logger.egommerce.local
2022-12-02 14:17:09 +01:00
ports:
- 24224:24224
2022-11-30 02:20:48 +01:00
postgres-db:
hostname: db.egommerce.local
environment:
- APP_DOMAIN=db.egommerce.local
2022-10-06 20:40:27 +02:00
- POSTGRES_PASSWORD=12345678
2022-11-30 02:20:48 +01:00
ports:
- '5432:5432'
# volumes:
# - ./certs/postgres-db:/certs
2022-10-06 20:40:27 +02:00
2022-11-30 02:20:48 +01:00
mongo-db:
hostname: mongodb.egommerce.local
2022-10-06 20:40:27 +02:00
environment:
2022-11-30 02:20:48 +01:00
- APP_DOMAIN=mongodb.egommerce.local
- MONGO_INITDB_ROOT_PASSWORD=12345678
ports:
- '27017:27017'
# volumes:
# - ./certs/mongo-db:/certs
2022-10-06 20:40:27 +02:00
2022-11-30 02:20:48 +01:00
# API micro-services
identity-svc:
image: git.pbiernat.dev/egommerce/identity-svc:dev
2022-10-06 20:40:27 +02:00
environment:
2022-11-30 02:20:48 +01:00
- APP_DOMAIN=identity.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672
volumes:
- ./certs/identity-svc:/certs
2022-10-06 20:40:27 +02:00
2022-11-30 02:20:48 +01:00
basket-svc:
image: git.pbiernat.dev/egommerce/basket-svc:dev
environment:
- APP_DOMAIN=basket.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672
volumes:
- ./certs/basket-svc:/certs
catalog-svc:
image: git.pbiernat.dev/egommerce/catalog-svc:dev
environment:
- APP_DOMAIN=catalog.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672
volumes:
- ./certs/catalog-svc:/certs
order-svc:
image: git.pbiernat.dev/egommerce/order-svc:dev
environment:
- APP_DOMAIN=order.api.egommerce.local
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672
volumes:
- ./certs/order-svc:/certs
# Workers (EventBus)
basket-worker:
image: git.pbiernat.dev/egommerce/basket-worker:dev
deploy:
replicas: 2
environment:
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
2022-12-02 22:03:33 +01:00
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
2022-11-30 02:20:48 +01:00
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672
catalog-worker:
image: git.pbiernat.dev/egommerce/catalog-worker:dev
deploy:
replicas: 2
environment:
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
2022-12-02 22:03:33 +01:00
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
2022-11-30 02:20:48 +01:00
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672
order-worker:
image: git.pbiernat.dev/egommerce/order-worker:dev
deploy:
replicas: 2
environment:
- DATABASE_URL=postgres://postgres:12345678@db.egommerce.local:5432/egommerce
2022-12-02 22:03:33 +01:00
- MONGODB_URL=mongodb://mongodb:12345678@mongodb.egommerce.local:27017
2022-11-30 02:20:48 +01:00
- EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672