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