stack/deploy/egommerce-stack.yml
2022-10-06 20:40:27 +02:00

52 lines
1.1 KiB
YAML

version: "3.9"
services:
postgres_svc:
image: postgres:14.1-alpine
# hostname: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=SuPerTrudneHasloNaKoniecTrzebaWygenerowac
networks:
- postgres_network
apigw_svc:
image: git.pbiernat.dev/egommerce/apigw-svc:latest # fixme :stable
networks:
- apigw_network
- identity_network
- basket_network
identity_svc:
image: git.pbiernat.dev/egommerce/identity-svc:latest # fixme :stable
environment:
- DATABASE_URL=postgres://PROD_IDENTITY_USER:PROD_PASS@postgres_svc:5432/PROD_DATABASE
networks:
- identity_network
- postgres_network
basket_svc:
image: egommerce_basket:latest
environment:
- DATABASE_URL=postgres://PROD_BASKET_USER:PROD_PASS@postgres_svc:5432/PROD_DATABASE
networks:
- basket_network
- postgres_network
networks:
postgres_network:
driver: overlay
internal: true
apigw_network:
driver: overlay
internal: true
identity_network:
driver: overlay
internal: true
basket_network:
driver: overlay
internal: true