-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.96 KB
/
docker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.96 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
bot:
build: .
image: polymarket-copy-bot:local
restart: unless-stopped
environment:
- POLYGON_PRIVATE_KEY=${POLYGON_PRIVATE_KEY:-}
- CLOB_API_KEY=${CLOB_API_KEY:-}
- CLOB_API_SECRET=${CLOB_API_SECRET:-}
- CLOB_API_PASSPHRASE=${CLOB_API_PASSPHRASE:-}
volumes:
# Bot's config uses relative paths (state/, logs/) and runs from
# WORKDIR=/app, so mounts have to land at /app/state and /app/logs
# for the host's ./state and ./logs to actually receive writes.
- ./state:/app/state
- ./logs:/app/logs
- ./bot/config.yaml:/app/bot/config.yaml:ro
ports:
- "127.0.0.1:9090:9090" # metrics + healthz exposed only on loopback
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
volumes:
- ./deploy/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "127.0.0.1:9091:9090"
depends_on:
- bot
grafana:
image: grafana/grafana-oss:latest
restart: unless-stopped
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ports:
- "127.0.0.1:3000:3000"
depends_on:
- prometheus
dashboard:
build:
context: .
dockerfile: dashboard/Dockerfile
image: polymarket-bot-dashboard:local
restart: unless-stopped
environment:
- DASHBOARD_API_KEY=${DASHBOARD_API_KEY:-}
# File names match what bot/config.yaml's data.db_path and
# logging.decisions_file resolve to under the bot's WORKDIR.
- DASHBOARD_BOT_DB_PATH=/state/bot_state.sqlite
- DASHBOARD_BOT_CONFIG_PATH=/app/bot/config.yaml
- DASHBOARD_DECISIONS_LOG_PATH=/logs/decisions.jsonl
- DASHBOARD_AUDIT_DB_PATH=/state/dashboard_audit.sqlite
- DASHBOARD_STATIC_DIR=/app/dashboard/web/dist
volumes:
- ./state:/state
- ./logs:/logs:ro
- ./bot/config.yaml:/app/bot/config.yaml:ro
ports:
- "127.0.0.1:8080:8080"
depends_on:
- bot