Skip to content

Add Fashion crawler Postgres production wiring - #5

Draft
kaanyagci wants to merge 8 commits into
mainfrom
agent/fashion-crawler-postgres-production
Draft

Add Fashion crawler Postgres production wiring#5
kaanyagci wants to merge 8 commits into
mainfrom
agent/fashion-crawler-postgres-production

Conversation

@kaanyagci

Copy link
Copy Markdown
Member

Summary

  • attach the production Postgres stack to a Fashion app database overlay network as makepad-postgres-fashion
  • provision the fashion database and fashion_crawler role during production deploys
  • add an idempotent bootstrap/fashion-app.sql path and update docs/static validation

Validation

  • bash scripts/validate-postgres-config.sh
  • MAKEPAD_POSTGRES_DB_NETWORK=catwlk-db MAKEPAD_POSTGRES_LE_PETIT_COIN_DB_NETWORK=le-petit-coin-db MAKEPAD_POSTGRES_VIF_DB_NETWORK=vif-db MAKEPAD_POSTGRES_FASHION_DB_NETWORK=fashion-db docker compose --env-file envs/production/.env.db -f compose.yml -f envs/production/compose.yml config >/tmp/makepad-postgres-stack.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the shared PostgreSQL Swarm stack to support the Fashion crawler in production by attaching the production-only Fashion overlay network alias and ensuring the Fashion database/role are provisioned during production deploys, with docs and static validation updated to match.

Changes:

  • Add a production-only makepad-postgres-fashion service alias backed by a new external overlay network variable (MAKEPAD_POSTGRES_FASHION_DB_NETWORK).
  • Provision the Fashion database/role during production deploys and introduce an idempotent bootstrap SQL script (bootstrap/fashion-app.sql).
  • Update README documentation and the static validation script to enforce the new wiring and bootstrap expectations.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/validate-postgres-config.sh Adds Fashion wiring/bootstrap invariants to the repo’s static configuration validation.
README.md Documents the Fashion production network variable mapping, bootstrap invocation, and connection URI.
envs/production/compose.yml Attaches Postgres to the production-only Fashion overlay network and exposes the makepad-postgres-fashion alias.
bootstrap/fashion-app.sql New idempotent bootstrap to create/repair the fashion DB and fashion_crawler role using a password variable and advisory lock.
.github/workflows/manual-deploy.yml Wires Fashion secrets/env vars, creates the Fashion overlay network in production, and provisions the Fashion DB/role with readiness checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kaanyagci
kaanyagci deployed to production July 15, 2026 22:20 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants