Add admin deployment sync
Some checks failed
Build & Push Docker Image / build-and-push (push) Failing after 14s

This commit is contained in:
Tom Misch
2026-05-11 10:39:02 +02:00
parent a59457a8bb
commit 55f201da40
6 changed files with 84 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ services:
- INITIAL_ADMIN_PASSWORD=Start123
- FULLS_DIR=/app/public/images/fulls
- THUMBS_DIR=/app/public/images/thumbs
- SYNC_IMAGE=ghcr.io/kroonk/photography:latest
- SYNC_CONTAINER=photography-website
volumes:
- /path/to/nextcloud/data:/app/public/images/fulls:ro
- thumbs:/app/public/images/thumbs
@@ -44,6 +46,8 @@ Change the initial admin password after the first login. If you prefer not to st
node -e "const bcrypt = require('bcryptjs'); console.log(bcrypt.hashSync('your-admin-password', 10));"
```
The admin dashboard includes a sync button that pulls `SYNC_IMAGE` and restarts `SYNC_CONTAINER`. This requires the Docker socket mount shown above.
## Credits & License
- Originally based on a Jekyll template.
- UI Design by [AJ / HTML5 UP](https://html5up.net).