Fix Docker

This commit is contained in:
Yûki VACHOT 2025-11-29 07:59:56 +01:00
parent 0666c07431
commit 92a7298e09
4 changed files with 7 additions and 25 deletions

View file

@ -37,4 +37,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000/health || exit 1
# Run the server using the installed package entry point
CMD ["python", "-m", "geoguessr_mcp.main"]
CMD ["python", "-m", "src.geoguessr_mcp.main"]

View file

@ -15,15 +15,8 @@ services:
restart: unless-stopped
expose:
- "8000"
environment:
- GEOGUESSR_NCFA_COOKIE=${GEOGUESSR_NCFA_COOKIE:-}
- MCP_TRANSPORT=streamable-http
- MCP_HOST=0.0.0.0
- MCP_PORT=8000
- MONITORING_ENABLED=true
- MONITORING_INTERVAL_HOURS=24
- SCHEMA_CACHE_DIR=/app/data/schemas
- LOG_LEVEL=INFO
env_file:
- .env
volumes:
- geoguessr-schemas:/app/data/schemas
healthcheck:

View file

@ -10,19 +10,8 @@ services:
restart: unless-stopped
ports:
- "${MCP_PORT:-8000}:8000"
environment:
# GeoGuessr Authentication (optional - can use login tool instead)
- GEOGUESSR_NCFA_COOKIE=${GEOGUESSR_NCFA_COOKIE:-}
# MCP Server configuration
- MCP_TRANSPORT=${MCP_TRANSPORT:-streamable-http}
- MCP_HOST=${MCP_HOST:-0.0.0.0}
- MCP_PORT=${MCP_PORT:-8000} # Use the same variable as in ports
# Monitoring configuration
- MONITORING_ENABLED=${MONITORING_ENABLED:-true}
- MONITORING_INTERVAL_HOURS=${MONITORING_INTERVAL_HOURS:-24}
- SCHEMA_CACHE_DIR=${SCHEMA_CACHE_DIR:-/app/data/schemas}
# Logging
- LOG_LEVEL=${LOG_LEVEL:-INFO}
env_file:
- .env
volumes:
# Persist schema cache between restarts
- geoguessr-schemas:${SCHEMA_CACHE_DIR:-/app/data/schemas}

View file

@ -47,7 +47,7 @@ dev = [
]
[project.scripts]
geoguessr-mcp = "server:main"
geoguessr-mcp = "geoguessr_mcp.main:main"
[project.urls]
Homepage = "https://github.com/NyxiumYuuki/GeoGuessrMCP"
@ -59,7 +59,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["."]
packages = ["src/geoguessr_mcp"]
# Black configuration
[tool.black]