Deploy stack su Proxmox / deploy (push) Failing after 3s
Monorepo npm con apps/public (Angular SSR), apps/private (Angular SPA), apps/api (Fastify), packages/shared e packages/styles; Medusa 2.21 in medusa/; infrastruttura Docker (Postgres PostGIS+pgvector, Redis, Caddy, backup) e workflow Gitea Actions per il deploy via SSH a ogni push su master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jQyT6dR9czzGwqb7FkG6u
20 lines
1.0 KiB
Markdown
20 lines
1.0 KiB
Markdown
# 02 — Docker Compose per sviluppo locale
|
|
|
|
Leggi `CLAUDE.md`.
|
|
|
|
## Obiettivo
|
|
Infrastruttura locale: Postgres (con PostGIS + pgvector) e Redis.
|
|
|
|
## Cosa fare
|
|
- `infra/postgres/Dockerfile` basato su `postgis/postgis:16-3.4` che installa `postgresql-16-pgvector`.
|
|
- Script init `infra/postgres/init/01-init.sql` che crea due database: `iti_app` (estensioni `postgis`, `vector`, `pg_trgm`, `unaccent`) e `iti_medusa`, con utenti distinti e password da variabili.
|
|
- `docker-compose.dev.yml` con servizi `postgres` (volume persistente, porta 5432) e `redis` (porta 6379).
|
|
- Variabili in `.env.example`: `POSTGRES_*`, `APP_DB_*`, `MEDUSA_DB_*`, `REDIS_URL`.
|
|
- Script npm root: `infra:up`, `infra:down`, `infra:logs`.
|
|
|
|
## Criteri di accettazione
|
|
- `npm run infra:up` avvia entrambi i container sani (healthcheck configurati).
|
|
- Connettendosi a `iti_app`, `SELECT postgis_version();` e `CREATE EXTENSION IF NOT EXISTS vector;` funzionano.
|
|
- Esistono entrambi i database con i rispettivi utenti.
|
|
- `CLAUDE.md` aggiornato con comandi infra.
|