mirror of
https://github.com/moesnow/March7thAssistant.git
synced 2026-08-03 08:47:01 +08:00
25 lines
964 B
YAML
25 lines
964 B
YAML
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"
|