-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
73 lines (66 loc) · 1.92 KB
/
docker-compose.local.yml
File metadata and controls
73 lines (66 loc) · 1.92 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
# ProcessPulse - Local Docker Test
# Uses your existing local Ollama instead of containerized one
#
# USAGE:
# docker-compose -f docker-compose.local.yml up --build
#
version: '3.8'
services:
# ===========================================
# Frontend (React + nginx)
# ===========================================
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: processpulse-frontend
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- processpulse-network
# ===========================================
# Backend (FastAPI)
# ===========================================
backend:
build:
context: .
dockerfile: Dockerfile
container_name: processpulse-backend
environment:
- DATABASE_URL=sqlite+aiosqlite:///./data/process_analyzer.db
# Connect to host's Ollama
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- PERPLEXICA_BASE_URL=http://host.docker.internal:3000
- DEBUG=true
volumes:
- processpulse-data:/app/data
ports:
- "8000:8000"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- processpulse-network
extra_hosts:
- "host.docker.internal:host-gateway"
# ===========================================
# Persistent Volumes
# ===========================================
volumes:
processpulse-data:
name: processpulse-data-local
# ===========================================
# Network
# ===========================================
networks:
processpulse-network:
name: processpulse-network-local
driver: bridge