docker-compose.bridge.yml raw
1 # Docker Compose for the Marmot Email Bridge (standalone)
2 #
3 # Usage:
4 # cp .env.bridge.example .env.bridge # edit with your values
5 # docker compose -f docker-compose.bridge.yml up --build
6 #
7 # The bridge connects to an external Nostr relay via WebSocket and
8 # receives inbound email on port 2525 via SMTP.
9
10 services:
11 bridge:
12 build: .
13 command: ["bridge"]
14 ports:
15 - "2525:2525" # SMTP inbound
16 volumes:
17 - bridge-data:/data # bridge.nsec + subscriptions.json
18 - ./dkim:/dkim:ro # DKIM private key (optional)
19 env_file:
20 - .env.bridge
21 healthcheck:
22 test: ["CMD-SHELL", "ss -tlnp | grep -q ':2525' || exit 1"]
23 interval: 10s
24 timeout: 5s
25 start_period: 10s
26 retries: 3
27 restart: unless-stopped
28
29 volumes:
30 bridge-data:
31