| 1234567891011121314151617181920212223242526272829303132333435363738 |
- 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}
- - NODE_ENV=production
- # Since this is an MCP server using stdio transport,
- # it's typically run as a subprocess rather than a standalone service.
- # However, you can keep it running for testing or health checks.
- stdin_open: true
- tty: true
- restart: unless-stopped
- # Uncomment if you need to expose a port for health checks
- # ports:
- # - "3000: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:
|