Add database initialization script

- Add database/init.sql with schema
- Mount init.sql in docker-compose for auto-initialization
- PostgreSQL will run this on first startup

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-20 14:14:00 -05:00
parent 93b6338e99
commit 5263ac93a9
2 changed files with 36 additions and 0 deletions

View file

@ -11,6 +11,7 @@ services:
POSTGRES_DB: priceghost
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports:
- "5432:5432"
healthcheck: