docker-compose.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. version: '3.8'
  2. services:
  3. gogs-mcp-server:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. image: gogs-mcp-server:latest
  8. container_name: gogs-mcp-server
  9. environment:
  10. - GOGS_SERVER_URL=${GOGS_SERVER_URL}
  11. - GOGS_ACCESS_TOKEN=${GOGS_ACCESS_TOKEN}
  12. - NODE_ENV=production
  13. # Since this is an MCP server using stdio transport,
  14. # it's typically run as a subprocess rather than a standalone service.
  15. # However, you can keep it running for testing or health checks.
  16. stdin_open: true
  17. tty: true
  18. restart: unless-stopped
  19. # Uncomment if you need to expose a port for health checks
  20. # ports:
  21. # - "3000:3000"
  22. # Uncomment if you need to mount local files for development
  23. # volumes:
  24. # - ./dist:/app/dist:ro
  25. # Optional: Include a Gogs server for local development/testing
  26. # Uncomment the section below if you want to run Gogs locally
  27. # gogs:
  28. # image: gogs/gogs:latest
  29. # container_name: gogs-server
  30. # ports:
  31. # - "10022:22"
  32. # - "3000:3000"
  33. # volumes:
  34. # - gogs-data:/data
  35. # restart: unless-stopped
  36. # volumes:
  37. # gogs-data: