-
Notifications
You must be signed in to change notification settings - Fork 542
/
Copy pathexecutor.docker-compose.yaml
33 lines (33 loc) · 1.34 KB
/
executor.docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '2.4'
services:
executor:
container_name: executor
image: 'us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal/executor:5.9.1590@sha256:ae9c8148ad79205a58ade9ebc87a46931f3399ec92ee8cb53ac36b68d16fe0d0'
cpus: 1
mem_limit: '4g'
# Run as root (required for docker daemon control)
user: root
# Run with privileged capabilities (required for docker daemon control)
privileged: true
environment:
# Refer to https://docs.sourcegraph.com/admin/executors/deploy_executors_binary#step-2-setup-environment-variables on how to populate these variables
- EXECUTOR_FRONTEND_URL=http://sourcegraph-frontend-0:3080
# Note: Must match `executors.accessToken` in site config
- EXECUTOR_FRONTEND_PASSWORD=
# Choose what work to process
- EXECUTOR_QUEUE_NAME=
# Note: Must match left-hand side of scratch volume mount
- EXECUTOR_DOCKER_HOST_MOUNT_PATH=/scratch
# Note: Must match right-hand side of scratch volume mount
- TMPDIR=/scratch
# Run as root (required for docker daemon control)
- UID=1000
- GID=1000
volumes:
# Mount docker socket
- '/var/run/docker.sock:/var/run/docker.sock'
# Mount volume for workspaces shared by executor and launched containers
- '/scratch:/scratch'
networks:
- sourcegraph
restart: always