CI / build (push) Successful in 2m0s
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).
23 lines
577 B
YAML
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:
|