setting up postgres container for new schema
This commit is contained in:
parent
5eda891fb5
commit
061b05afb6
3 changed files with 30 additions and 3 deletions
|
|
@ -19,3 +19,8 @@ GID=1000
|
||||||
|
|
||||||
RESEND_API_KEY=
|
RESEND_API_KEY=
|
||||||
EMAIL_FROM=mail@example.com
|
EMAIL_FROM=mail@example.com
|
||||||
|
|
||||||
|
PIPELINE_POSTGRES_USER=
|
||||||
|
PIPELINE_POSTGRES_PASSWORD=
|
||||||
|
PIPELINE_POSTGRES_DB=
|
||||||
|
PIPELINE_DATABASE_URL=
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,27 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
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:
|
valkey:
|
||||||
container_name: lila-valkey
|
container_name: lila-valkey
|
||||||
image: valkey/valkey:9.1-alpine3.23
|
image: valkey/valkey:9.1-alpine3.23
|
||||||
|
|
@ -80,3 +101,4 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
lila-db:
|
lila-db:
|
||||||
|
pipeline-db:
|
||||||
|
|
|
||||||
|
|
@ -103,9 +103,9 @@ constraints, indexes, and relations.
|
||||||
|
|
||||||
**Tasks:**
|
**Tasks:**
|
||||||
|
|
||||||
- [ ] Acquire frequency-based noun lists for all 5 languages
|
- [x] Acquire frequency-based noun lists for all 5 languages
|
||||||
- [ ] Clean and format the lists (one word per line, UTF-8)
|
- [x] Clean and format the lists (one word per line, UTF-8)
|
||||||
- [ ] Set up local Postgres (Docker or native)
|
- [x] Set up local Postgres (Docker or native)
|
||||||
- [ ] Set up a SQLite database file for staging
|
- [ ] Set up a SQLite database file for staging
|
||||||
- [ ] Write and test the Gemini prompt with 5 sample words
|
- [ ] Write and test the Gemini prompt with 5 sample words
|
||||||
- [ ] Refine the prompt until the JSON output matches the contract
|
- [ ] Refine the prompt until the JSON output matches the contract
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue