-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (31 loc) · 1.17 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
# mdf-server — Docker Compose configuration
#
# Wallet address secret: create before first run:
# echo -n 0xYourWallet > secrets/wallet_address && chmod 600 secrets/wallet_address
#
# Feed event log: persisted to ./data/feed-events.ndjson on the host.
# The data/ directory is created automatically on first run.
#
# The dashboard (port 9090) has NO external port mapping.
# Access it via Tailscale or internal Docker network only.
services:
mdf-server:
build: .
restart: unless-stopped
ports:
- 3030:3000
environment:
MDF_PORT: 3000
MDF_DASHBOARD_PORT: 9090
MDF_DATA_DIR: /app/data
# MDF_WATCH_INTERVAL_MS: 30000 # default: 30s
volumes:
- ./mdf.yaml:/app/mdf.yaml:ro
- ./content:/app/content:ro
- ./data:/app/data
# Wallet secret — bind-mounted as a file instead of using Docker secrets,
# because the Compose secret uid/gid feature is not supported on this
# Docker version. The host file has 600 permissions; inside the container
# it appears world-readable (444). The secret never appears in env vars
# or image layers.
- ./secrets/wallet_address:/run/secrets/wallet_address:ro