-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (45 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (45 loc) · 1.58 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
services:
backend:
build:
context: .
dockerfile: ./backend/Dockerfile
container_name: opencheck-backend
ports:
- "8000:8000"
environment:
- OPENCHECK_ALLOW_LIVE=${OPENCHECK_ALLOW_LIVE:-false}
- OPENCHECK_CORS_ORIGIN=${OPENCHECK_CORS_ORIGIN:-http://localhost:5173}
- COMPANIES_HOUSE_API_KEY=${COMPANIES_HOUSE_API_KEY:-}
- OPENSANCTIONS_API_KEY=${OPENSANCTIONS_API_KEY:-}
- OPENALEPH_API_KEY=${OPENALEPH_API_KEY:-}
- OPENCORPORATES_API_KEY=${OPENCORPORATES_API_KEY:-}
- WIKIDATA_SPARQL_ENDPOINT=${WIKIDATA_SPARQL_ENDPOINT:-https://query.wikidata.org/sparql}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
volumes:
- ./backend:/app
- ./data:/data
command: uv run uvicorn opencheck.app:app --host 0.0.0.0 --port 8000 --reload
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 10s
timeout: 3s
retries: 5
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: opencheck-frontend
ports:
- "5173:5173"
environment:
# Used by Vite's server-side proxy (not baked into the browser bundle).
# Must use the Docker service name so the proxy can reach the backend
# container — "localhost" inside the frontend container is itself, not
# the backend.
- VITE_API_BASE_URL=http://backend:8000
volumes:
- ./frontend:/app
- /app/node_modules
command: npm run dev -- --host 0.0.0.0
depends_on:
- backend