fixing some issues
This commit is contained in:
1
.env
1
.env
@@ -11,6 +11,7 @@ DROP=/mnt/user/photosync/drop
|
|||||||
IMMICH_URL=http://immich:8080
|
IMMICH_URL=http://immich:8080
|
||||||
IMMICH_API_KEY=REPLACE_ME
|
IMMICH_API_KEY=REPLACE_ME
|
||||||
ALLOW_INSECURE_SSL=true
|
ALLOW_INSECURE_SSL=true
|
||||||
|
IMMICH_GO_VERSION=0.31.0
|
||||||
|
|
||||||
# Mover tuning
|
# Mover tuning
|
||||||
STABLE_FOR=5
|
STABLE_FOR=5
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
version: "3.9"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
photosync-mover:
|
photosync-mover:
|
||||||
image: alpine:3.19
|
image: alpine:3.19
|
||||||
@@ -19,7 +17,7 @@ services:
|
|||||||
user: "${PUID:-1000}:${PGID:-1000}"
|
user: "${PUID:-1000}:${PGID:-1000}"
|
||||||
|
|
||||||
photosync-uploader:
|
photosync-uploader:
|
||||||
image: ghcr.io/immich-app/immich-go:release
|
image: alpine:3.19
|
||||||
container_name: photosync-uploader
|
container_name: photosync-uploader
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -28,6 +26,7 @@ services:
|
|||||||
- TZ=${TZ:-UTC}
|
- TZ=${TZ:-UTC}
|
||||||
- IMMICH_URL=${IMMICH_URL}
|
- IMMICH_URL=${IMMICH_URL}
|
||||||
- IMMICH_API_KEY=${IMMICH_API_KEY}
|
- IMMICH_API_KEY=${IMMICH_API_KEY}
|
||||||
|
- IMMICH_GO_VERSION=${IMMICH_GO_VERSION:-0.31.0}
|
||||||
- SCAN_DIR=/drop
|
- SCAN_DIR=/drop
|
||||||
- SCAN_INTERVAL=${UPLOAD_SCAN_INTERVAL:-5}
|
- SCAN_INTERVAL=${UPLOAD_SCAN_INTERVAL:-5}
|
||||||
- IDLE_SLEEP=${UPLOAD_IDLE_SLEEP:-3}
|
- IDLE_SLEEP=${UPLOAD_IDLE_SLEEP:-3}
|
||||||
@@ -37,5 +36,22 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${DROP}:/drop:rw
|
- ${DROP}:/drop:rw
|
||||||
- ./uploader.sh:/scripts/uploader.sh:ro
|
- ./uploader.sh:/scripts/uploader.sh:ro
|
||||||
entrypoint: ["/bin/sh","-c","chmod +x /scripts/uploader.sh && exec /scripts/uploader.sh"]
|
entrypoint:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -e
|
||||||
|
apk add --no-cache curl ca-certificates >/dev/null
|
||||||
|
arch="$$(uname -m)"
|
||||||
|
case "$$arch" in
|
||||||
|
x86_64) arch="amd64" ;;
|
||||||
|
aarch64) arch="arm64" ;;
|
||||||
|
*) echo "Unsupported architecture: $$arch"; exit 1 ;;
|
||||||
|
esac
|
||||||
|
url="https://github.com/simulot/immich-go/releases/download/v$${IMMICH_GO_VERSION}/immich-go_Linux_$${arch}"
|
||||||
|
echo "[uploader] Downloading immich-go $${IMMICH_GO_VERSION} for $$arch"
|
||||||
|
curl -fsSL -o /usr/local/bin/immich-go "$$url"
|
||||||
|
chmod +x /usr/local/bin/immich-go
|
||||||
|
chmod +x /scripts/uploader.sh
|
||||||
|
exec /scripts/uploader.sh
|
||||||
user: "${PUID:-1000}:${PGID:-1000}"
|
user: "${PUID:-1000}:${PGID:-1000}"
|
||||||
|
|||||||
Reference in New Issue
Block a user