Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. admin
  3. executors
  4. deploy_executors_docker

Deploying Sourcegraph executors using Docker Compose

This feature is in beta and might change in the future.

A docker-compose file is provided to deploy executors standlone, or alongside your existing Sourcegraph deployment.

Requirements

Privileged containers are required to run executors in docker-compose. This is because executors require access to the docker daemon running on the host.

Deployment

Prerequisites

  • Install Docker Compose on the server
  • Minimum Docker v20.10.0 and Docker Compose v1.29.0
  • Docker Swarm mode is not supported
  • Clone the deploy-sourcegraph-docker
  • Edit the deploy-sourcegraph-docker/docker-compose/executors/executor.docker-compose.yaml and update the environment variables
  • Follow the instructions in the README for more specific deployment instructions.

Note

Executors deployed via docker-compose do not use Firecracker, meaning they require privileged access to the docker daemon running on the host.

If you have security concerns, consider deploying via terraform or installing the binary directly.

On this page

  1. Deploying Sourcegraph executors using Docker Compose

    1. Requirements
    1. Deployment
    1. Note

Edit this page on GitHub
Questions? Give us feedback