refactor(compose): 统一容器重启策略为 unless-stopped 并精简媒体服务

This commit is contained in:
王磊
2026-08-29 17:03:15 +08:00
parent a7a46a239d
commit b929d0b49e
7 changed files with 31 additions and 49 deletions
Regular → Executable
+1 -1
View File
@@ -2,7 +2,7 @@ services:
calibre-web:
image: johngong/calibre-web
container_name: calibre-web
restart: always
restart: unless-stopped
env_file:
- .env
environment:
+3 -3
View File
@@ -2,7 +2,7 @@ services:
gitea:
image: gitea/gitea:1
container_name: gitea
restart: always
restart: unless-stopped
env_file:
- .env
environment:
@@ -43,7 +43,7 @@ services:
gitea-db:
image: postgres:15-alpine
container_name: gitea-db
restart: always
restart: unless-stopped
env_file:
- .env
environment:
@@ -58,7 +58,7 @@ services:
act-runner:
image: gitea/act_runner:latest
container_name: act-runner
restart: always
restart: unless-stopped
network_mode: host
env_file:
- .env
Regular → Executable
+1 -1
View File
@@ -2,7 +2,7 @@ services:
lucky:
image: gdy666/lucky
container_name: lucky
restart: always
restart: unless-stopped
network_mode: host # ← 关键一行
environment:
- PUID=1000
+4 -4
View File
@@ -2,7 +2,7 @@ services:
openlist:
image: openlistteam/openlist:latest
container_name: openlist
restart: always
restart: unless-stopped
user: "1000:1000"
env_file:
- .env
@@ -21,7 +21,7 @@ services:
# 网盘资源搜索 (TG频道 + 插件),QAS 的 CloudSaver 搜索源
image: ghcr.io/fish2018/pansou-web:latest
container_name: pansou
restart: always
restart: unless-stopped
env_file:
- .env
networks:
@@ -38,7 +38,7 @@ services:
# 夸克自动转存/追更,配合 aria2 插件下载到本地
image: cp0204/quark-auto-save:latest
container_name: quark-auto-save
restart: always
restart: unless-stopped
env_file:
- .env
networks:
@@ -56,7 +56,7 @@ services:
# 网盘直链下载器,接收 QAS 任务下载到 Cloud/
image: p3terx/aria2-pro:latest
container_name: aria2
restart: always
restart: unless-stopped
env_file:
- .env
networks:
Regular → Executable
+2 -2
View File
@@ -2,7 +2,7 @@ services:
emby:
image: amilys/embyserver:latest
container_name: emby
restart: always
restart: unless-stopped
env_file:
- .env
- proxy.env
@@ -24,7 +24,7 @@ services:
jellyfin:
image: nyanmisaka/jellyfin:latest
container_name: jellyfin
restart: always
restart: unless-stopped
env_file:
- .env
- proxy.env
+2 -2
View File
@@ -2,7 +2,7 @@ services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: always
restart: unless-stopped
env_file:
- .env
- media.env
@@ -27,7 +27,7 @@ services:
transmission:
image: lscr.io/linuxserver/transmission:latest
container_name: transmission
restart: always
restart: unless-stopped
env_file:
- .env
- media.env
Regular → Executable
+18 -36
View File
@@ -2,7 +2,7 @@ services:
moviepilot:
image: jxxghp/moviepilot-v2:latest
container_name: moviepilot-v2
restart: always
restart: unless-stopped
env_file:
- .env
- proxy.env
@@ -34,26 +34,26 @@ services:
- ../media-pt/qbittorrent/config/qBittorrent/BT_backup:/qBittorrent
- ${MEDIA_ROOT}:/media
music-tag-web:
image: xhongc/music_tag_web:latest
container_name: music-tag-web
restart: always
env_file:
- .env
- proxy.env
- media.env
networks:
- default
ports:
- "17022:8001"
volumes:
- ./music-tag-web/config:/app/data
- ${MUSIC_ROOT}:/app/media:rw
# music-tag-web:
# image: xhongc/music_tag_web:latest
# container_name: music-tag-web
# restart: unless-stopped
# env_file:
# - .env
# - proxy.env
# - media.env
# networks:
# - default
# ports:
# - "17022:8001"
# volumes:
# - ./music-tag-web/config:/app/data
# - ${MUSIC_ROOT}:/app/media:rw
bonita:
image: suwmlee/bonita:latest
container_name: bonita
restart: always
restart: unless-stopped
env_file:
- .env
- proxy.env
@@ -73,28 +73,10 @@ services:
- ./bonita/data:/app/backend/data
- ${MEDIA_ROOT}:/media
omnibox:
image: lampon/omnibox:latest
container_name: omnibox
restart: always
env_file:
- .env
- proxy.env
- media.env
networks:
- default
ports:
- "17023:7023"
environment:
- TZ=${TZ}
volumes:
- ./omnibox/data:/app/data
- ${MEDIA_ROOT}:/app/media
danmu-api:
image: logvar/danmu-api:latest
container_name: danmu-api
restart: always
restart: unless-stopped
networks:
- default
ports: