Update coolfan1024/xiaomi-album-syncer Docker tag to v0.21.2 (#9287)

* Update coolfan1024/xiaomi-album-syncer Docker tag to v0.21.2

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
This commit is contained in:
renovate[bot]
2026-11-21 05:53:19 +08:00
committed by GitHub
co-authored by github-action update-app-version
parent 415e2f41af
commit a044c79084
5 changed files with 173 additions and 0 deletions
@@ -0,0 +1,5 @@
CONTAINER_NAME=xiaomi-album-syncer-compose-check
PANEL_APP_PORT_HTTP=8232
DOWNLOAD_DIR=./data/download
DATABASE_DIR=./data/db
TZ=Asia/Shanghai
+83
View File
@@ -0,0 +1,83 @@
additionalProperties:
formFields:
- default: 8232
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
label:
en: Web Port
zh: Web 端口
zh-hant: Web 連接埠
ja: Web ポート
ko: Web 포트
ru: Веб-порт
ms: Port Web
pt-br: Porta Web
tr: Web bağlantı noktası
es-es: Puerto web
fa: درگاه وب
lo: ພອດເວັບ
required: true
rule: paramPort
type: number
- default: ./data/download
edit: true
envKey: DOWNLOAD_DIR
labelEn: Download Directory
labelZh: 下载目录
label:
en: Download Directory
zh: 下载目录
zh-hant: 下載目錄
ja: ダウンロードディレクトリ
ko: 다운로드 디렉터리
ru: Каталог загрузок
ms: Direktori Muat Turun
pt-br: Diretório de Downloads
tr: İndirme dizini
es-es: Directorio de descargas
fa: پوشه دانلود
lo: ໄດເຣັກທໍຣີດາວໂຫຼດ
required: true
type: text
- default: ./data/db
edit: true
envKey: DATABASE_DIR
labelEn: Database Directory
labelZh: 数据库目录
label:
en: Database Directory
zh: 数据库目录
zh-hant: 資料庫目錄
ja: データベースディレクトリ
ko: 데이터베이스 디렉터리
ru: Каталог базы данных
ms: Direktori Pangkalan Data
pt-br: Diretório do Banco de Dados
tr: Veritabanı dizini
es-es: Directorio de base de datos
fa: پوشه پایگاه داده
lo: ໄດເຣັກທໍຣີຖານຂໍ້ມູນ
required: true
type: text
- default: Asia/Shanghai
edit: true
envKey: TZ
labelEn: Timezone
labelZh: 时区
label:
en: Timezone
zh: 时区
zh-hant: 時區
ja: タイムゾーン
ko: 시간대
ru: Часовой пояс
ms: Zon Waktu
pt-br: Fuso Horário
tr: Saat dilimi
es-es: Zona horaria
fa: منطقه زمانی
lo: ເຂດເວລາ
required: true
type: text
@@ -0,0 +1 @@
@@ -0,0 +1,30 @@
services:
xiaomi-album-syncer:
image: "coolfan1024/xiaomi-album-syncer:0.21.2"
container_name: ${CONTAINER_NAME}
restart: unless-stopped
environment:
- TZ=${TZ}
volumes:
- "${DOWNLOAD_DIR}:/app/download"
- "${DATABASE_DIR}:/app/db"
ports:
- "${PANEL_APP_PORT_HTTP}:8080"
healthcheck:
test:
- CMD
- bash
- -c
- exec 3<>/dev/tcp/127.0.0.1/8080
start_period: 30s
interval: 30s
timeout: 10s
retries: 5
labels:
createdBy: "Apps"
networks:
- 1panel-network
networks:
1panel-network:
external: true
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
ENV_FILE="${ENV_FILE:-$ROOT_DIR/.env}"
read_env_value() {
local key="$1"
[[ -f "$ENV_FILE" ]] || return 0
local value
value="$(sed -n "s/^${key}=//p" "$ENV_FILE" | tail -n 1)"
case "$value" in
\"*\") value="${value#\"}"; value="${value%\"}" ;;
\'*\') value="${value#\'}"; value="${value%\'}" ;;
esac
printf '%s\n' "$value"
}
configured_value() {
local key="$1"
local default_value="$2"
local value
value="${!key:-}"
if [[ -z "$value" ]]; then
value="$(read_env_value "$key")"
fi
printf '%s\n' "${value:-$default_value}"
}
resolve_app_path() {
local raw="$1"
if [[ "$raw" = /* ]]; then
printf '%s\n' "$raw"
else
printf '%s\n' "$ROOT_DIR/${raw#./}"
fi
}
ensure_dir() {
local path
path="$(resolve_app_path "$(configured_value "$1" "$2")")"
mkdir -p "$path"
}
ensure_file_parent() {
local path
local parent
path="$(resolve_app_path "$(configured_value "$1" "$2")")"
parent="$(dirname "$path")"
mkdir -p "$parent"
}
ensure_dir "DOWNLOAD_DIR" "./data/download"
ensure_dir "DATABASE_DIR" "./data/db"