version: '3.8' services: gitea-mcp-wrapper: build: context: . dockerfile: Dockerfile image: gitea-mcp-wrapper:latest container_name: gitea-mcp-wrapper restart: unless-stopped ports: - "8000:8000" environment: # Gitea Configuration - GITEA_URL=${GITEA_URL} - GITEA_TOKEN=${GITEA_TOKEN} - GITEA_OWNER=${GITEA_OWNER} - GITEA_REPO=${GITEA_REPO} # HTTP Server Configuration - HTTP_HOST=0.0.0.0 - HTTP_PORT=8000 # Authentication (Optional) - AUTH_TOKEN=${AUTH_TOKEN:-} # Tool Filtering (Optional) - ENABLED_TOOLS=${ENABLED_TOOLS:-} - DISABLED_TOOLS=${DISABLED_TOOLS:-} healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health').read()"] interval: 30s timeout: 3s retries: 3 start_period: 5s networks: - gitea-mcp-network networks: gitea-mcp-network: driver: bridge