pushing files
This commit is contained in:
41
docker-compose.yml
Normal file
41
docker-compose.yml
Normal 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}"
|
||||
Reference in New Issue
Block a user