Files
pamietnik/docker-compose.yml
Christoph K. a49416854e Remove nginx/webapp container; single Go server serves SPA + API
- Add root Dockerfile: node build → copy dist into Go embed path → distroless binary
- Update docker-compose: one service (api on :9050), DB renamed ralph→pamietnik
- Remove references to RALPH/reisejournal across all docs and configs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 10:32:04 +02:00

32 lines
685 B
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: pamietnik
POSTGRES_PASSWORD: pamietnik
POSTGRES_DB: pamietnik
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pamietnik"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "9050:8080"
environment:
DATABASE_URL: postgres://pamietnik:pamietnik@postgres:5432/pamietnik?sslmode=disable
LISTEN_ADDR: :8080
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
pgdata: