Created
May 13, 2019 19:39
-
-
Save ryan-blunden/ce9789eb067b0f08f7f4c8eb84d282ce to your computer and use it in GitHub Desktop.
Docker Compose for lang servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
sourcegraph: | |
container_name: sourcegraph | |
image: sourcegraph/server:3.2.0 | |
environment: | |
- SRC_LOG_LEVEL=dbug | |
ports: | |
- '127.0.0.1:80:80' | |
- 443:7080 | |
- 2633:2633 | |
ulimits: | |
nofile: | |
soft: 262144 | |
hard: 262144 | |
volumes: | |
- ~/.sourcegraph/config:/etc/sourcegraph | |
- ~/.sourcegraph/data:/var/opt/sourcegraph | |
networks: | |
- sourcegraph | |
depends_on: | |
- go-lang-server | |
restart: unless-stopped | |
go-lang-server: | |
image: sourcegraph/lang-go:latest | |
ports: | |
- :4389 | |
command: ['go-langserver', '-mode=websocket', '-addr=:4389', '-usebuildserver', '-usebinarypkgcache=false'] | |
networks: | |
- sourcegraph | |
restart: unless-stopped | |
ts-lang-server: | |
image: sourcegraph/lang-typescript:latest | |
networks: | |
- sourcegraph | |
restart: unless-stopped | |
py-lang-server: | |
image: sourcegraph/lang-python:latest | |
networks: | |
- sourcegraph | |
restart: unless-stopped | |
networks: | |
sourcegraph: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment