-
Notifications
You must be signed in to change notification settings - Fork 849
Expand file tree
/
Copy pathdocker-compose.signal.yml
More file actions
49 lines (46 loc) · 1.37 KB
/
docker-compose.signal.yml
File metadata and controls
49 lines (46 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
45
46
47
48
49
# Signal channel overlay for dockerized signal-cli.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.signal.yml --profile gateway up -d
#
# Prerequisites:
# 1. Create .env.signal and fill in secrets
# 2. Link signal-cli device (signal-cli link, then scan QR with Signal app)
# 3. Optional: set SIGNAL_USE_REST_API=1 and SIGNAL_CLI_MODE=normal
services:
signal-cli:
image: bbernhard/signal-cli-rest-api:latest
ports:
- "8080:8080"
volumes:
- ${HOME}/.local/share/signal-cli:/home/.local/share/signal-cli
environment:
- MODE=${SIGNAL_CLI_MODE:-json-rpc}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/v1/health"]
interval: 10s
timeout: 5s
retries: 6
start_period: 15s
gateway:
depends_on:
signal-cli:
condition: service_healthy
ports: !override
- "3000:3000"
env_file:
- path: .env.signal
required: true
volumes:
- nullclaw-data:/root/.nullclaw
- ./config.signal.json:/nullclaw-data/.nullclaw/config.json:ro
environment:
- NULLCLAW_CONFIG=/nullclaw-data/.nullclaw/config.json
- SIGNAL_USE_REST_API=${SIGNAL_USE_REST_API:-0}
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
interval: 30s
timeout: 5s
retries: 3
volumes: {}