Add production Docker Compose setup with Nginx and SSL; enhance test fixtures and environment variables for monitoring, logging, and schema caching; and clean up unused imports.
This commit is contained in:
parent
bf5d1b890a
commit
283d7deee4
6 changed files with 109 additions and 58 deletions
|
|
@ -0,0 +1,71 @@
|
|||
version: '3.8'
|
||||
|
||||
# Production deployment with Nginx reverse proxy and SSL support
|
||||
|
||||
services:
|
||||
geoguessr-mcp:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: geoguessr-mcp-server
|
||||
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
|
||||
volumes:
|
||||
- geoguessr-schemas:/app/data/schemas
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:8000/health" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
networks:
|
||||
- internal
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: geoguessr-mcp-nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./nginx/ssl:/etc/nginx/ssl:ro
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
depends_on:
|
||||
geoguessr-mcp:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- internal
|
||||
- external
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "5m"
|
||||
max-file: "3"
|
||||
|
||||
volumes:
|
||||
geoguessr-schemas:
|
||||
name: geoguessr-mcp-schemas-prod
|
||||
|
||||
networks:
|
||||
internal:
|
||||
name: geoguessr-internal
|
||||
internal: true
|
||||
external:
|
||||
name: geoguessr-external
|
||||
Loading…
Add table
Add a link
Reference in a new issue