docker-compose.yml 1.1 KB

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