Add GitHub Actions CI/CD, update docker-compose and README
- 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
This commit is contained in:
3 files changed
+132
-27
No files matched your search
+13
-1
@@ -1,10 +1,22 @@
|
||||
services:
|
||||
prayer:
|
||||
build: .
|
||||
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
|
||||
Reference in new issue
Block a user