forked from DrJeky11/osint-lite-deftech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.49 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.49 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
services:
api:
build:
context: .
dockerfile: app/api/Dockerfile
ports:
- "8000:8000"
environment:
- DATASET_DIR=/app/data
- GROQ_API_KEY=${GROQ_API_KEY}
- X_BEARER_TOKEN=${X_BEARER_TOKEN:-}
- BLUESKY_IDENTIFIER=${BLUESKY_IDENTIFIER:-}
- BLUESKY_APP_PASSWORD=${BLUESKY_APP_PASSWORD:-}
- BLUESKY_PDS_URL=${BLUESKY_PDS_URL:-}
volumes:
- api-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 5s
retries: 3
worker:
build:
context: .
dockerfile: app/worker/Dockerfile
environment:
- API_BASE_URL=http://api:8000
- BLUESKY_IDENTIFIER=${BLUESKY_IDENTIFIER:-}
- BLUESKY_APP_PASSWORD=${BLUESKY_APP_PASSWORD:-}
- BLUESKY_PDS_URL=${BLUESKY_PDS_URL:-}
- X_BEARER_TOKEN=${X_BEARER_TOKEN:-}
depends_on:
api:
condition: service_healthy
restart: unless-stopped
wgi:
build: ./scrapers/wgi
ports:
- "8001:8001"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8001/health')"]
interval: 30s
timeout: 5s
retries: 3
frontend:
build: ./frontend
ports:
- "3000:80"
depends_on:
api:
condition: service_healthy
restart: unless-stopped
volumes:
api-data: