March7thAssistant/docker-compose.yml

25 lines
964 B
YAML
Raw Permalink 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:
march7thassistant:
container_name: m7a
build: .
# image: ghcr.io/moesnow/march7thassistant:latest
# image: ghcr.nju.edu.cn/moesnow/march7thassistant:latest
volumes:
- ./config.yaml:/m7a/config.yaml
- ./logs:/m7a/logs
- ./3rdparty/WebBrowser/UserProfile:/m7a/3rdparty/WebBrowser/UserProfile
environment:
- MARCH7TH_LOG_LEVEL=DEBUG
network_mode: "bridge"
shm_size: 1g
# 默认命令为 python main.py即完整运行。
# 如需只执行某个子任务,可取消下面其中一行的注释以覆盖 Dockerfile 内的默认命令:
# command: ["python", "main.py", "daily"]
# command: ["python", "main.py", "power"]
# command: ["python", "main.py", "currencywars"]
# command: ["python", "main.py", "divergent"]
# command: ["python", "main.py", "notify"]
restart: unless-stopped
# 如果只是临时执行一次子任务,建议改为:
# restart: "no"