-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.08 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
services:
backend:
build:
context: .
dockerfile: Dockerfile
environment:
APP_HOST: 0.0.0.0
APP_PORT: 8000
APP_ENV: development
CORS_ALLOWED_ORIGINS: http://localhost:5173,http://127.0.0.1:5173,http://localhost:3000,http://127.0.0.1:3000
OLLAMA_BASE_URL: http://host.docker.internal:11434/v1
OLLAMA_MODEL: ""
RESIGRAPH_DB_PATH: /app/backend/data/resigraph.db
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8000:8000"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=2).read()\""]
interval: 30s
timeout: 3s
retries: 3
start_period: 20s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
VITE_API_BASE_URL: http://127.0.0.1:8000
depends_on:
backend:
condition: service_healthy
ports:
- "3000:3000"
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"