Files
Resume-python/docker-compose.yml
2026-04-27 01:25:45 +08:00

18 lines
631 B
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.

# 用法(在项目根目录):
# docker compose build
# docker compose up -d
# 数据持久化:把宿主机上的项目目录挂到 /data与 app 内工作目录一致(见下方 volumes
services:
web:
build: .
image: telegram-scraper-web:local
container_name: telegram-scraper-web
restart: unless-stopped
ports:
- "8000:8000"
working_dir: /data
volumes:
# 改成你服务器上「已有代码 + .env + state + session + 各 -100* 目录」的绝对路径
- ${HOST_PROJECT_DIR:-.}:/data
command: ["uvicorn", "app_web:app", "--host", "0.0.0.0", "--port", "8000"]