2022-10-06 20:40:27 +02:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
2022-11-30 02:20:48 +01:00
|
|
|
api-gateway:
|
|
|
|
image: git.pbiernat.dev/egommerce/api-gateway:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=api-gateway
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
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
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=api-registry
|
2022-12-25 23:21:27 +01:00
|
|
|
- CONSUL_HTTP_TOKEN=devop
|
2023-06-25 00:48:39 +02:00
|
|
|
volumes:
|
|
|
|
- ./certs/api-registry:/consul/data/certs
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
api-eventbus:
|
|
|
|
image: git.pbiernat.dev/egommerce/api-eventbus:dev
|
2022-10-06 20:40:27 +02:00
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=api-eventbus
|
2023-05-20 21:41:33 +02:00
|
|
|
# - RABBITMQ_NODENAME=api-eventbus
|
|
|
|
# - RABBITMQ_USE_LONGNAME=true
|
2022-11-30 02:20:48 +01:00
|
|
|
# - RABBITMQ_DEFAULT_USER = admin
|
|
|
|
# - RABBITMQ_DEFAULT_PASS = passw123
|
|
|
|
|
2022-12-25 23:21:27 +01:00
|
|
|
api-cache:
|
|
|
|
image: git.pbiernat.dev/egommerce/api-cache:dev
|
|
|
|
environment:
|
|
|
|
- PASSWORD=12345678
|
|
|
|
|
2022-11-30 02:20:48 +01:00
|
|
|
api-logger:
|
|
|
|
image: git.pbiernat.dev/egommerce/api-logger:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=api-logger
|
2023-03-20 15:08:33 +01:00
|
|
|
|
2023-05-22 00:34:21 +02:00
|
|
|
#api-prometheus:
|
2023-03-20 15:08:33 +01:00
|
|
|
# image: prom/prometheus:latest # FIXME: create private image(prod/dev)...
|
2023-05-22 00:34:21 +02:00
|
|
|
# environment:
|
|
|
|
# - APP_DOMAIN=prometheus.keshop.bieda.it
|
2023-03-20 15:08:33 +01:00
|
|
|
|
2023-05-22 00:34:21 +02:00
|
|
|
#api-grafana:
|
2023-03-20 15:08:33 +01:00
|
|
|
# image: grafana/grafana-oss:latest # FIXME: create private image(prod/dev)...
|
2023-05-22 00:34:21 +02:00
|
|
|
# environment:
|
|
|
|
# - APP_DOMAIN=grafana.keshop.bieda.it
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
postgres-db:
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=postgres-db
|
2022-10-06 20:40:27 +02:00
|
|
|
- POSTGRES_PASSWORD=12345678
|
|
|
|
|
2022-11-30 02:20:48 +01:00
|
|
|
mongo-db:
|
2022-10-06 20:40:27 +02:00
|
|
|
environment:
|
2023-06-13 21:28:10 +02:00
|
|
|
- APP_DOMAIN=mongo-db
|
2022-11-30 02:20:48 +01:00
|
|
|
- MONGO_INITDB_ROOT_PASSWORD=12345678
|
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:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=identity-svc
|
|
|
|
- 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
|
2022-11-30 02:20:48 +01:00
|
|
|
volumes:
|
2022-12-04 07:19:55 +01:00
|
|
|
- ./certs/api-gateway:/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:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=basket-svc
|
2023-06-24 12:44:28 +02:00
|
|
|
- AUTH_HANDLER_URL=http://identity-svc/api/v1/traefik
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-11-30 02:20:48 +01:00
|
|
|
volumes:
|
2022-12-04 07:19:55 +01:00
|
|
|
- ./certs/api-gateway:/certs
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
catalog-svc:
|
|
|
|
image: git.pbiernat.dev/egommerce/catalog-svc:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=catalog-svc
|
2023-06-24 12:44:28 +02:00
|
|
|
- AUTH_HANDLER_URL=http://identity-svc/api/v1/traefik
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-11-30 02:20:48 +01:00
|
|
|
volumes:
|
2022-12-04 07:19:55 +01:00
|
|
|
- ./certs/api-gateway:/certs
|
2022-11-30 02:20:48 +01:00
|
|
|
|
2022-12-25 23:21:27 +01:00
|
|
|
pricing-svc:
|
|
|
|
image: git.pbiernat.dev/egommerce/pricing-svc:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=pricing-svc
|
2023-06-24 12:44:28 +02:00
|
|
|
- AUTH_HANDLER_URL=http://identity-svc/api/v1/traefik
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-12-25 23:21:27 +01:00
|
|
|
volumes:
|
|
|
|
- ./certs/api-gateway:/certs
|
|
|
|
|
2022-11-30 02:20:48 +01:00
|
|
|
order-svc:
|
|
|
|
image: git.pbiernat.dev/egommerce/order-svc:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- APP_DOMAIN=order-svc
|
2023-06-24 12:44:28 +02:00
|
|
|
- AUTH_HANDLER_URL=http://identity-svc/api/v1/traefik
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-11-30 02:20:48 +01:00
|
|
|
volumes:
|
2022-12-04 07:19:55 +01:00
|
|
|
- ./certs/api-gateway:/certs
|
2022-11-30 02:20:48 +01:00
|
|
|
|
2023-06-24 12:44:28 +02:00
|
|
|
# Workers (Eventbus)
|
2022-11-30 02:20:48 +01:00
|
|
|
basket-worker:
|
|
|
|
image: git.pbiernat.dev/egommerce/basket-worker:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
catalog-worker:
|
|
|
|
image: git.pbiernat.dev/egommerce/catalog-worker:dev
|
2022-12-25 23:21:27 +01:00
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-12-25 23:21:27 +01:00
|
|
|
|
|
|
|
pricing-worker:
|
|
|
|
image: git.pbiernat.dev/egommerce/pricing-worker:dev
|
2022-11-30 02:20:48 +01:00
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|
2022-11-30 02:20:48 +01:00
|
|
|
|
|
|
|
order-worker:
|
|
|
|
image: git.pbiernat.dev/egommerce/order-worker:dev
|
|
|
|
environment:
|
2023-05-22 00:34:21 +02:00
|
|
|
- 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
|