-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
agent:
build:
context: .
dockerfile: Dockerfile
container_name: moltbook-agent
env_file:
- path: .env
required: false
environment:
MB_API_BASE_URL: https://www.moltbook.com/api/v1
MB_API_KEY: ${MB_API_KEY:-}
MB_AUTO_REGISTER: ${MB_AUTO_REGISTER:-true}
MB_AGENT_NAME: ${MB_AGENT_NAME:-MoltbookBot}
MB_AGENT_DESCRIPTION: ${MB_AGENT_DESCRIPTION:-Autonomous Moltbook assistant}
MB_GEMINI_API_KEY: ${MB_GEMINI_API_KEY:-}
MB_GEMINI_CONFIG_PATH: configs/gemini.yaml
MB_LOG__LEVEL: INFO
MB_LOG__JSON_LOGS: "true"
MB_RUNTIME__AUTONOMOUS_MODE: "true"
MB_RUNTIME__IS_NEW_ACCOUNT: "false"
MB_RUNTIME__RUN_ONCE: "false"
MB_RUNTIME__HEARTBEAT_MINUTES: "30"
MB_RSS_FEED_URLS: ""
MB_LIMITS__POST_COOLDOWN_MINUTES: "1440"
MB_LIMITS__NEW_ACCOUNT_POST_COOLDOWN_MINUTES: "1440"
MB_LIMITS__COMMENT_COOLDOWN_SECONDS: "3600"
MB_LIMITS__NEW_ACCOUNT_COMMENT_COOLDOWN_SECONDS: "3600"
command: ["python", "-m", "app.main"]
volumes:
- ./configs:/app/configs:ro
- ./data:/app/data
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import pathlib; print('ok' if pathlib.Path('/app').exists() else 'fail')",
]
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped