fixing some issues
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
photosync-mover:
|
||||
image: alpine:3.19
|
||||
@@ -19,7 +17,7 @@ services:
|
||||
user: "${PUID:-1000}:${PGID:-1000}"
|
||||
|
||||
photosync-uploader:
|
||||
image: ghcr.io/immich-app/immich-go:release
|
||||
image: alpine:3.19
|
||||
container_name: photosync-uploader
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
@@ -28,6 +26,7 @@ services:
|
||||
- TZ=${TZ:-UTC}
|
||||
- IMMICH_URL=${IMMICH_URL}
|
||||
- IMMICH_API_KEY=${IMMICH_API_KEY}
|
||||
- IMMICH_GO_VERSION=${IMMICH_GO_VERSION:-0.31.0}
|
||||
- SCAN_DIR=/drop
|
||||
- SCAN_INTERVAL=${UPLOAD_SCAN_INTERVAL:-5}
|
||||
- IDLE_SLEEP=${UPLOAD_IDLE_SLEEP:-3}
|
||||
@@ -37,5 +36,22 @@ services:
|
||||
volumes:
|
||||
- ${DROP}:/drop:rw
|
||||
- ./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}"
|
||||
|
||||
Reference in New Issue
Block a user