Add docker-compose.yml with persistent volumes for DB and uploads

This commit is contained in:
2026-08-22 21:50:01 +10:00
parent 940eb7d30a
commit 6f2b5c9e2b
+18
View File
@@ -0,0 +1,18 @@
services:
scratchingpost:
build: .
image: scratchingpost:latest
container_name: scratchingpost
restart: unless-stopped
ports:
- "8080:8080"
environment:
# Where the SQLite DB lives inside the container (matches the volume below).
- DataDirectory=/data
# Admin login — override these for anything beyond local testing.
- Admin__Username=admin
- Admin__Password=ScratchingPost2026!
# - MaxUploadSizeMB=20
volumes:
- ./data:/data # noticeboard.db
- ./uploads:/app/wwwroot/uploads # TinyMCE / background images / uploaded ICS files