FEAT: Init Discovery Service
Build, Push and Deploy Discovery / build-push-deploy (push) Successful in 1m45s
Deploy Infrastructure / pulumi-up (push) Successful in 2s

This commit is contained in:
FahdShalhoub
2026-08-27 22:03:41 +03:00
parent 0cfd89f200
commit 98950aba20
20 changed files with 719 additions and 6 deletions
+28
View File
@@ -123,6 +123,34 @@ services:
- action: rebuild
path: ./cms
discovery:
container_name: "${DISCOVERY_DOCKER_NAME:-discovery}"
build:
context: ./discovery
dockerfile: Dockerfile
ports:
- "127.0.0.1:8080:8080" # JSON API + Swagger UI at /swagger/
environment:
# Postgres only — discovery touches no AWS service, which is why it has
# no task role in infrastructure/main.go and no AWS_* wiring here. Its
# own role and database, provisioned alongside the cms ones by
# newServiceDatabase, so the two services share no credentials.
- DB_HOST=${DISCOVERY_DB_HOST:-localhost.localstack.cloud}
- DB_PORT=${DISCOVERY_DB_PORT:-4510}
- DB_NAME=${DISCOVERY_DB_NAME:-discovery}
- DB_USER=${DISCOVERY_DB_USER:-discovery}
- DB_PASSWORD=${DB_PASSWORD:?}
- DB_SSLMODE=${DISCOVERY_DB_SSLMODE:-disable}
depends_on:
infra:
condition: service_completed_successfully
develop:
watch:
# Same as cms: a compiled binary, so every change means a new image.
# Needs `docker compose up --watch` (or `docker compose watch`).
- action: rebuild
path: ./discovery
volumes:
pulumi-state:
pulumi-home: