docker run -d \
--name=lychee \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-e DB_CONNECTION=sqlite \
-e DB_DATABASE=/config/lychee.sqlite3 \
-e APP_NAME=album \
-e APP_URL=$your_url \
-p 80:80 \
-v $path_to_config:/config \
-v $path_to_pictures:/pictures \
--restart unless-stopped \
lscr.io/linuxserver/lychee:latest
url配置要正确不然无法正常预览
更多配置参考官方github: