Add filter, add READMES
This commit is contained in:
@@ -12,10 +12,14 @@ services:
|
||||
- ./data:/data:Z
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
build: ./backend_go
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DEFAULT_NODE_LIMIT=${DEFAULT_NODE_LIMIT:-800000}
|
||||
- DEFAULT_EDGE_LIMIT=${DEFAULT_EDGE_LIMIT:-2000000}
|
||||
- MAX_NODE_LIMIT=${MAX_NODE_LIMIT:-10000000}
|
||||
- MAX_EDGE_LIMIT=${MAX_EDGE_LIMIT:-20000000}
|
||||
- INCLUDE_BNODES=${INCLUDE_BNODES:-false}
|
||||
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:5173}
|
||||
- SPARQL_HOST=${SPARQL_HOST:-http://anzograph:8080}
|
||||
@@ -30,15 +34,11 @@ services:
|
||||
- SPARQL_READY_RETRIES=${SPARQL_READY_RETRIES:-30}
|
||||
- SPARQL_READY_DELAY_S=${SPARQL_READY_DELAY_S:-4}
|
||||
- SPARQL_READY_TIMEOUT_S=${SPARQL_READY_TIMEOUT_S:-10}
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- ./data:/data:Z
|
||||
depends_on:
|
||||
- owl_imports_combiner
|
||||
- anzograph
|
||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health').read()"]
|
||||
test: ["CMD", "curl", "-fsS", "http://localhost:8000/api/health"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 60
|
||||
|
||||
Reference in New Issue
Block a user