-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1014 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1014 Bytes
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
services:
bot:
build:
context: .
dockerfile: Dockerfile
container_name: persona_forge_bot
env_file:
- .env
environment:
# Override database path for container (mode=rwc creates file if not exists)
- DATABASE_URL=sqlite:/app/data/persona_forge.db?mode=rwc
# Webapp binds to all interfaces in container
- WEBAPP_HOST=0.0.0.0
# Enable logging
- RUST_LOG=info
# Override Ollama URL to use host.docker.internal (macOS/Windows)
- OLLAMA_URL=http://host.docker.internal:11434
ports:
- "${WEBAPP_PORT:-8080}:8080"
volumes:
- ./data:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- 8.8.8.8
- 8.8.4.4
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
ollama_data:
networks:
default:
name: persona_forge_network