-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (24 loc) · 964 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
24 lines (24 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"