| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- services:
- gogs-mcp-server:
- build:
- context: .
- dockerfile: Dockerfile
- image: gogs-mcp-server:latest
- container_name: gogs-mcp-server
- environment:
- - GOGS_SERVER_URL=${GOGS_SERVER_URL}
- - GOGS_ACCESS_TOKEN=${GOGS_ACCESS_TOKEN}
- - TRANSPORT_MODE=${TRANSPORT_MODE:-stdio}
- - HTTP_PORT=${HTTP_PORT:-3000}
- - HTTP_HOST=${HTTP_HOST:-0.0.0.0}
- - NODE_ENV=production
- # For stdio mode: the server runs as a subprocess by MCP clients
- # For HTTP mode: the server runs as a standalone service
- stdin_open: true
- tty: true
- restart: unless-stopped
- # Expose port when using HTTP transport mode
- ports:
- - "${HTTP_PORT:-3000}:${HTTP_PORT:-3000}"
- # Uncomment if you need to mount local files for development
- # volumes:
- # - ./dist:/app/dist:ro
- # Optional: Include a Gogs server for local development/testing
- # Uncomment the section below if you want to run Gogs locally
- # gogs:
- # image: gogs/gogs:latest
- # container_name: gogs-server
- # ports:
- # - "10022:22"
- # - "3000:3000"
- # volumes:
- # - gogs-data:/data
- # restart: unless-stopped
- # volumes:
- # gogs-data:
|