- compose.yaml: postgres:16-alpine with pg_isready healthcheck (no seed mounts) - .env.example: DATABASE_URL, PORT, ENV (D-15) - .gitignore: bin/, tmp/, .env, generated tailwind.css, bootstrap-downloaded htmx.min.js, *_templ.go, sqlc output - migrations/0001_init.sql: goose no-op bootstrap migration
21 lines
477 B
YAML
21 lines
477 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: xtablo-backend-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: xtablo
|
|
POSTGRES_USER: xtablo
|
|
POSTGRES_PASSWORD: xtablo
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U xtablo -d xtablo"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
postgres_data:
|