Add docker-compose.yml with persistent volumes for DB and uploads
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user