- GitHub Actions builds and pushes to ghcr.io/nmemmert/prayer on every push to main; PRs build only (no push). Uses GHA layer cache for speed. - docker-compose references the published image, adds healthcheck, restart policy, and explicit env vars. - README rewritten: Docker usage, data persistence, CI/CD, dev setup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DReRqHxSYuVfCzTzQGD9hZ
23 lines
434 B
YAML
23 lines
434 B
YAML
services:
|
|
prayer:
|
|
image: ghcr.io/nmemmert/prayer:latest
|
|
build:
|
|
context: .
|
|
ports:
|
|
- "3000:4000"
|
|
volumes:
|
|
- prayer-data:/data
|
|
environment:
|
|
- DATA_DIR=/data
|
|
- PORT=4000
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/prayers"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
volumes:
|
|
prayer-data:
|
|
driver: local
|