This repository has been archived on 2026-10-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
NeteaseUrl/docker-compose.yml
T
snowy-yang d209af847a chore: 基线快照 —— 纳入 git 版本控制(站点 v2.4.0 / Flask 单体)
在框架迁移与模块拆分前保存当前可运行状态:
- 后端:main.py/auth_routes.py/auth_system.py/music_api.py/music_downloader.py/podcast_api.py/qr_login.py
- 前端:templates/index.html + static/site_auth.js
- 部署:Dockerfile/docker-compose.yml/entrypoint.sh/requirements.txt
敏感数据(data/、cookie.txt)与内部文档(交接文档/新会话引导)按 .gitignore 排除。
2026-09-26 00:13:05 +08:00

23 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
netease-url:
build:
context: .
dockerfile: Dockerfile
# F59:.env 缺失时不再启动失败(required 属性 compose v2.24+ 支持;老版本可删掉该行)
env_file:
- path: .env
required: false
environment:
- TZ=Asia/Shanghai # 未提供 .env 时的默认时区(F59:文档"默认即可运行"现在成立)
- ENABLE_SECURE_COOKIE=${ENABLE_SECURE_COOKIE:-} # HTTPS 反代上线后设 1(见 .env.example)
ports:
- "5001:5000" # 对外 5001 端口(容器内 Flask 监听 5000)
restart: unless-stopped
volumes:
- ./cookie.txt:/app/cookie.txt # 全局管理员 Cookie(持久化,重建不丢失;需先创建文件)
- ./user_cookie.txt:/app/user_cookie.txt # 游客个人 Cookie(持久化;需先创建文件)
- ./downloads:/app/downloads # 下载文件目录
- ./data:/app/data # 站点数据库 / 备份(认证系统)
# 注:Dockerfile 以非 root(appuser, UID 10001)运行;宿主机需保证
# ./downloads 与 ./data 对 UID 10001 可写(如 sudo chown -R 10001:10001 downloads data)