GeoGuessrMCP/docker-compose.yml
2025-11-29 07:59:56 +01:00

39 lines
No EOL
1,001 B
YAML

services:
geoguessr-mcp:
# Option 1: Build locally
build:
context: .
dockerfile: Dockerfile
# Option 2: Use pre-built image from Docker Hub (uncomment to use)
# image: ${DOCKER_USERNAME:-yourusername}/geoguessr-mcp:${IMAGE_TAG:-latest}
container_name: geoguessr-mcp-server
restart: unless-stopped
ports:
- "${MCP_PORT:-8000}:8000"
env_file:
- .env
volumes:
# Persist schema cache between restarts
- geoguessr-schemas:${SCHEMA_CACHE_DIR:-/app/data/schemas}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:${MCP_PORT:-8000}/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- geoguessr-mcp-network
volumes:
geoguessr-schemas:
name: geoguessr-mcp-schemas
networks:
geoguessr-mcp-network:
name: geoguessr-mcp-network
driver: bridge