Files
Photography/docker-compose.yml
Tom Misch a59457a8bb
Some checks failed
Build & Push Docker Image / build-and-push (push) Failing after 1m50s
Secure image access and bootstrap admin
2026-05-11 10:35:05 +02:00

44 lines
1.6 KiB
YAML

services:
photography:
image: ghcr.io/kroonk/photography:latest
container_name: photography-website
ports:
- "8090:8090"
environment:
- JWT_SECRET=${JWT_SECRET:?set JWT_SECRET in your environment}
- INITIAL_ADMIN_USERNAME=MrDiderot
- INITIAL_ADMIN_PASSWORD=Start123
- FULLS_DIR=/app/public/images/fulls
- THUMBS_DIR=/app/public/images/thumbs
volumes:
# Nextcloud-Ordner mit Originalbildern (read-only)
- /volume1/nextcloud/data/Tom/files/Websitebilder:/app/public/images/fulls:ro
# Thumbnails werden automatisch generiert und hier gespeichert
- thumbs:/app/public/images/thumbs
# SQLite Database (persistent)
- database:/app/data
# Zugriff auf Docker & Credentials fuer den One-Click "Website Aktualisieren" Button
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/config.json:/root/.docker/config.json:ro
restart: unless-stopped
# Watchtower: Prueft automatisch auf neue Docker-Images und aktualisiert den Container
watchtower:
image: containrrr/watchtower
container_name: watchtower
# Nur unsere Webseite updaten, andere UGREEN Container ignorieren!
command: photography-website
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# GitHub Login von deinem NAS uebernehmen, um ghcr.io lesen zu duerfen
- ~/.docker/config.json:/config.json:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=300
- WATCHTOWER_LABEL_ENABLE=false
restart: unless-stopped
volumes:
thumbs:
database: