Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docker-compose/docker-compose.override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: '2.4'
services:
executor:
container_name: executor
image: 'index.docker.io/sourcegraph/executor:insiders@sha256:2cfa8f547eadbff999f523055889ffa2ff308bdf11408c777f98c035ebc16878'
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:
# Note: Must match `executors.frontendURL` in site config
- EXECUTOR_FRONTEND_URL=http://sourcegraph-frontend-0:3080
# Note: Must match `executors.accessToken` in site config
- EXECUTOR_FRONTEND_PASSWORD=hunter2hunter2hunter2
# Choose what work to process
- EXECUTOR_QUEUE_NAME=codeintel
# Note: Must match left-hand side of scratch volume mount
- EXECUTOR_DOCKER_HOST_MOUNT_PATH=/tmp/sourcegraph/executor-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
- '/tmp/sourcegraph/executor-scratch:/scratch'
networks:
- sourcegraph
restart: always
8 changes: 4 additions & 4 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ services:
zoekt-indexserver-0:
container_name: zoekt-indexserver-0
image: 'index.docker.io/sourcegraph/search-indexer:insiders@sha256:461625546e3636a1abd38b94b3accea6b8d1ae92924b738cc7b41f5e8f74bb45'
cpus: 8
mem_limit: '16g'
cpus: 2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in this file are only to get the stack to boot on my machine

mem_limit: '4g'
environment:
- 'HOSTNAME=zoekt-webserver-0:6070'
- 'SRC_FRONTEND_INTERNAL=http://sourcegraph-frontend-internal:3090'
Expand All @@ -256,8 +256,8 @@ services:
zoekt-webserver-0:
container_name: zoekt-webserver-0
image: 'index.docker.io/sourcegraph/indexed-searcher:insiders@sha256:9d7f9a49ba16dae3c2e0ae27972b02421d65c60682ea107633dac6ab286228fb'
cpus: 8
mem_limit: '50g'
cpus: 2
mem_limit: '4g'
environment:
- 'HOSTNAME=zoekt-webserver-0:6070'
healthcheck:
Expand Down