Skip to content

Instantly share code, notes, and snippets.

@ryan-blunden
Last active February 25, 2019 21:40
Show Gist options
  • Save ryan-blunden/046e0143a0c3466986386ec639c94212 to your computer and use it in GitHub Desktop.
Save ryan-blunden/046e0143a0c3466986386ec639c94212 to your computer and use it in GitHub Desktop.
Docker Compose example for Sourcegraph with the Go language server
version: "3"
services:
sourcegraph:
image: sourcegraph/server:3.1.1
environment:
- SRC_LOG_LEVEL=dbug
ports:
- 80:7080
- 443:7080
- 2633:2633
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- ~/.sourcegraph/config:/etc/sourcegraph
- ~/.sourcegraph/data:/var/opt/sourcegraph
networks:
- sourcegraph
restart: on-failure
go:
image: sourcegraph/lang-go:latest
ports:
- 4389:4389
command:
[
"go-langserver",
"-mode=websocket",
"-addr=:4389",
"-usebuildserver",
"-usebinarypkgcache=false",
]
networks:
- sourcegraph
restart: on-failure
networks:
sourcegraph:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment