Add Cloud Tour Libo knowledge graph platform

This commit is contained in:
2026-07-30 10:08:04 +08:00
parent 9e05b09a38
commit bae5197d62
103 changed files with 14036 additions and 160 deletions

29
docker-compose.server.yml Normal file
View File

@@ -0,0 +1,29 @@
services:
api:
network_mode: host
ports: !override []
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-admin}:${POSTGRES_PASSWORD:-password}@127.0.0.1:${POSTGRES_PORT:-5433}/${POSTGRES_DB:-kg_admin}
FALKORDB_HOST: 127.0.0.1
FALKORDB_PORT: ${FALKORDB_PORT:-6380}
command:
- python
- -m
- uvicorn
- app.main:app
- --host
- 0.0.0.0
- --port
- ${API_PORT:-8102}
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import os, urllib.request; port=os.environ.get('API_PORT','8102'); urllib.request.urlopen(f'http://127.0.0.1:{port}/v1/admin/health', timeout=5).read()",
]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3