diff --git a/README.md b/README.md index 6a325ae..5dd6a8f 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,12 @@ docker compose up -d ## 配置示例 -1. [只部署小雅alist](/docker-compose-alist.yml) -2. [部署小雅alist+emby](/docker-compose-emby.yml) -2. [部署小雅alist+jellyfin](/docker-compose-jellyfin.yml) +* [只部署小雅alist](/docker-compose-alist.yml) +* [部署小雅alist+emby](/docker-compose-emby.yml) +* [部署小雅alist+jellyfin](/docker-compose-jellyfin.yml) ## 参考 https://hub.docker.com/r/amilys/embyserver + https://github.com/DDS-Derek/xiaoya-alist/blob/master/all_in_one.sh \ No newline at end of file diff --git a/alist/clear.sh b/alist/clear.sh index 5809c80..61c0a82 100644 --- a/alist/clear.sh +++ b/alist/clear.sh @@ -1,7 +1,13 @@ #!/bin/bash +set -e + DATA_DIR=/data +myecho() { + echo "$*" +} + retry_command() { # 重试次数和最大重试次数 retries=0 diff --git a/docker-compose-emby.yml b/docker-compose-emby.yml index 081da0d..3f6708d 100644 --- a/docker-compose-emby.yml +++ b/docker-compose-emby.yml @@ -35,7 +35,7 @@ services: - meta:/media/temp depends_on: - alist - restart: no + restart: unless-stopped networks: - default emby: diff --git a/docker-compose-jellyfin.yml b/docker-compose-jellyfin.yml index b88e6f8..aac1d7f 100644 --- a/docker-compose-jellyfin.yml +++ b/docker-compose-jellyfin.yml @@ -35,7 +35,7 @@ services: - meta:/media/temp depends_on: - alist - restart: no + restart: unless-stopped networks: - default jellyfin: diff --git a/docker-compose.yml b/docker-compose.yml index dfe895d..1a0bbca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,7 @@ services: - meta:/media/temp depends_on: - alist - restart: no + restart: unless-stopped networks: - default emby: diff --git a/glue/entrypoint.sh b/glue/entrypoint.sh index 737e7b9..f399f69 100644 --- a/glue/entrypoint.sh +++ b/glue/entrypoint.sh @@ -7,6 +7,9 @@ while ! curl -s -f -m 1 "${ALIST_ADDR:=http://alist:80}" > /dev/null; do sleep 2 done +echo "alist启动完成,可能需要一段时间加载数据,等待5分钟后开始下载元数据..." +sleep 300 + MEDIA_DIR="/media" if [ ! -d "${MEDIA_DIR}/temp" ]; then