-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (55 loc) · 2.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (55 loc) · 2.14 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
# ══════════════════════════════════════════════════════════════════════════════
# BIRDY-EDWARDS — docker-compose.yml
# Works on: Linux, Windows (Docker Desktop), Mac
# Ollama must be running on HOST machine before starting container
# ══════════════════════════════════════════════════════════════════════════════
services:
birdy-edwards:
build:
context: .
dockerfile: Dockerfile
container_name: birdy-edwards
restart: unless-stopped
ports:
- "5000:5000"
# ── Persistent volumes — data survives container restarts ──
volumes:
# Session cookies (managed via Cookie-Editor import UI)
- ./app/fb_cookies.pkl:/app/fb_cookies.pkl
# Databases
- ./app/socmint.db:/app/socmint.db
- ./app/socmint_manual.db:/app/socmint_manual.db
# Output directories
- ./app/reports:/app/reports
- ./app/face_data:/app/face_data
- ./app/post_screenshots:/app/post_screenshots
- ./app/status:/app/status
# Model preference
- ./app/.ollama_model:/app/.ollama_model
- ./app/fonts:/app/fonts
environment:
# Points to Ollama on the host machine
- OLLAMA_HOST=http://host.docker.internal:11434
# Virtual display for SeleniumBase
- DISPLAY=:99
# Flask config
- FLASK_ENV=production
- FLASK_HOST=0.0.0.0
- FLASK_PORT=5000
# ── Required for host.docker.internal on Linux ──
extra_hosts:
- "host.docker.internal:host-gateway"
# ── Resource limits (adjust based on your system) ──
deploy:
resources:
limits:
memory: 6G
reservations:
memory: 2G
# ── Health check ──
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s