pushing files

This commit is contained in:
RandyJC
2025-12-01 09:24:53 +01:00
commit 6ab601771c
5 changed files with 271 additions and 0 deletions

41
docker-compose.yml Normal file
View File

@@ -0,0 +1,41 @@
version: "3.9"
services:
photosync-mover:
image: alpine:3.19
container_name: photosync-mover
restart: unless-stopped
environment:
- TZ=${TZ:-UTC}
- INBOX=${INBOX}
- DROP=${DROP}
- STABLE_FOR=${STABLE_FOR:-5}
- SCAN_FALLBACK=${SCAN_FALLBACK:-60}
volumes:
- ${INBOX}:/inbox:rw
- ${DROP}:/drop:rw
- ./move_stable.sh:/scripts/move_stable.sh:ro
entrypoint: ["/bin/sh","-c","apk add --no-cache inotify-tools coreutils >/dev/null && chmod +x /scripts/move_stable.sh && exec /scripts/move_stable.sh"]
user: "${PUID:-1000}:${PGID:-1000}"
photosync-uploader:
image: ghcr.io/immich-app/immich-go:release
container_name: photosync-uploader
restart: unless-stopped
depends_on:
- photosync-mover
environment:
- TZ=${TZ:-UTC}
- IMMICH_URL=${IMMICH_URL}
- IMMICH_API_KEY=${IMMICH_API_KEY}
- SCAN_DIR=/drop
- SCAN_INTERVAL=${UPLOAD_SCAN_INTERVAL:-5}
- IDLE_SLEEP=${UPLOAD_IDLE_SLEEP:-3}
- CONCURRENCY=${UPLOAD_CONCURRENCY:-4}
- DELETE_ON_SUCCESS=${DELETE_ON_SUCCESS:-true}
- ALLOW_INSECURE_SSL=${ALLOW_INSECURE_SSL:-false}
volumes:
- ${DROP}:/drop:rw
- ./uploader.sh:/scripts/uploader.sh:ro
entrypoint: ["/bin/sh","-c","chmod +x /scripts/uploader.sh && exec /scripts/uploader.sh"]
user: "${PUID:-1000}:${PGID:-1000}"