forked from 20-18-15-14/SignalBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (77 loc) · 1.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (77 loc) · 1.75 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_DB: signal_osint
POSTGRES_USER: signal
POSTGRES_PASSWORD: signal
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U signal -d signal_osint"]
interval: 10s
timeout: 5s
retries: 10
signal-cli-rest-api:
image: ${SIGNAL_CLI_IMAGE:-bbernhard/signal-cli-rest-api:latest}
environment:
MODE: "json-rpc"
ports:
- "8080:8080"
volumes:
- signal_state:/home/.local/share/signal-cli
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/v1/health"]
interval: 15s
timeout: 5s
retries: 10
app:
build: .
env_file:
- .env
environment:
RUN_MIGRATIONS: "true"
UVICORN_RELOAD: "true"
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
signal-cli-rest-api:
condition: service_healthy
volumes:
- ./:/app
- ./knowledge:/app/knowledge
worker:
build: .
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
signal-cli-rest-api:
condition: service_healthy
volumes:
- ./:/app
- ./knowledge:/app/knowledge
command: python -m app.workers.ingestion_worker
receiver:
build: .
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
signal-cli-rest-api:
condition: service_healthy
app:
condition: service_started
volumes:
- ./:/app
- ./knowledge:/app/knowledge
command: python -m app.workers.signal_receiver
volumes:
postgres_data:
signal_state: