Files
hn-reader/docker-compose.yml
privatecloud builder 95bef8bf7b
CI / build (push) Successful in 2m0s
Build hn-reader: keyboard-driven Hacker News reader
Vite/React + shadcn/ui frontend with Superhuman-style keyboard nav
(j/k/o/v/e/s/u, feed switching, localStorage caching for instant
loads) backed by an Express API that polls the HN Firebase API into
Postgres and serves cached feeds/comments. Instrumented with
OpenTelemetry (traces/metrics/logs via OTLP/HTTP).
2026-07-25 12:16:08 +00:00

23 lines
577 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: hn-reader-postgres
restart: unless-stopped
environment:
POSTGRES_DB: hnreader
POSTGRES_USER: hnreader
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "127.0.0.1:5433:5432"
volumes:
- hn-reader-pgdata:/var/lib/postgresql/data
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hnreader -d hnreader"]
interval: 5s
timeout: 5s
retries: 10
volumes:
hn-reader-pgdata: