version: "3.9" services: # INFRASTRUCTURE SERVICES api-gateway: image: git.pbiernat.dev/egommerce/api-gateway:dev hostname: gw.egommerce.local environment: - APP_DOMAIN=gw.egommerce.local ports: - '8443:443' - '8888:8080' volumes: - ./certs:/etc/traefik/certs api-registry: 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 environment: - APP_DOMAIN=eventbus.egommerce.local # - 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 ports: - 24224:24224 postgres-db: hostname: db.egommerce.local environment: - APP_DOMAIN=db.egommerce.local - POSTGRES_PASSWORD=12345678 ports: - '5432:5432' # volumes: # - ./certs/postgres-db:/certs mongo-db: hostname: mongodb.egommerce.local environment: - APP_DOMAIN=mongodb.egommerce.local - MONGO_INITDB_ROOT_PASSWORD=12345678 ports: - '27017:27017' # volumes: # - ./certs/mongo-db:/certs # API micro-services identity-svc: image: git.pbiernat.dev/egommerce/identity-svc:dev # hostname: identity.api.egommerce.local environment: - 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 basket-svc: image: git.pbiernat.dev/egommerce/basket-svc:dev # hostname: basket.api.egommerce.local 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 # hostname: catalog.api.egommerce.local 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 # hostname: order.api.egommerce.local 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 - 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 - 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 - EVENTBUS_URL=amqp://guest:guest@eventbus.egommerce.local:5672