From 061b05afb630a392ee389e3daf1682ef5a61b20b Mon Sep 17 00:00:00 2001 From: lila Date: Thu, 23 Jul 2026 23:57:11 +0200 Subject: [PATCH] setting up postgres container for new schema --- .env.example | 5 +++++ docker-compose.yml | 22 ++++++++++++++++++++++ documentation/pipeline/roadmap.md | 6 +++--- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index eba6428..ca9d22d 100644 --- a/.env.example +++ b/.env.example @@ -19,3 +19,8 @@ GID=1000 RESEND_API_KEY= EMAIL_FROM=mail@example.com + +PIPELINE_POSTGRES_USER= +PIPELINE_POSTGRES_PASSWORD= +PIPELINE_POSTGRES_DB= +PIPELINE_DATABASE_URL= diff --git a/docker-compose.yml b/docker-compose.yml index cae960a..3dccd4f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,27 @@ services: timeout: 5s retries: 5 + pipeline-database: + container_name: lila-pipeline-database + image: postgres:18.3-alpine3.23 + env_file: + - .env + environment: + - PGDATA=/var/lib/postgresql/data + - POSTGRES_USER=${PIPELINE_POSTGRES_USER} + - POSTGRES_PASSWORD=${PIPELINE_POSTGRES_PASSWORD} + - POSTGRES_DB=${PIPELINE_POSTGRES_DB} + ports: + - "5433:5432" + volumes: + - pipeline-db:/var/lib/postgresql/data + restart: unless-stopped + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${PIPELINE_POSTGRES_USER} -d ${PIPELINE_POSTGRES_DB}"] + interval: 5s + timeout: 5s + retries: 5 + valkey: container_name: lila-valkey image: valkey/valkey:9.1-alpine3.23 @@ -80,3 +101,4 @@ services: volumes: lila-db: + pipeline-db: diff --git a/documentation/pipeline/roadmap.md b/documentation/pipeline/roadmap.md index f01bcb5..bbbb643 100644 --- a/documentation/pipeline/roadmap.md +++ b/documentation/pipeline/roadmap.md @@ -103,9 +103,9 @@ constraints, indexes, and relations. **Tasks:** -- [ ] Acquire frequency-based noun lists for all 5 languages -- [ ] Clean and format the lists (one word per line, UTF-8) -- [ ] Set up local Postgres (Docker or native) +- [x] Acquire frequency-based noun lists for all 5 languages +- [x] Clean and format the lists (one word per line, UTF-8) +- [x] Set up local Postgres (Docker or native) - [ ] Set up a SQLite database file for staging - [ ] Write and test the Gemini prompt with 5 sample words - [ ] Refine the prompt until the JSON output matches the contract