monaco-editor-lsp-next/compose.local.yml
cfngc4594 63fd9a4a45
Some checks failed
Docker Build and Push / docker-build-and-push (., Dockerfile, monaco-editor-lsp-next) (push) Failing after 18s
Docker Build and Push / docker-build-and-push (./docker/lsp/clangd, ./docker/lsp/clangd/Dockerfile, lsp-c) (push) Failing after 15s
Docker Build and Push / docker-build-and-push (./docker/lsp/clangd, ./docker/lsp/clangd/Dockerfile, lsp-cpp) (push) Failing after 15s
chore(docker): change default USER to root in Dockerfile and remove user: root in Compose
2025-03-06 00:32:56 +08:00

63 lines
1.3 KiB
YAML

services:
monaco-editor-lsp-next:
build:
context: ./
dockerfile: Dockerfile
image: monaco-editor-lsp-next:latest
container_name: monaco-editor-lsp-next
restart: always
ports:
- "3000:3000"
networks:
- monaco-editor-lsp-next
depends_on:
- lsp-c
- lsp-cpp
healthcheck:
test: [ "CMD-SHELL", "curl --fail http://localhost:3000 || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
- /var/run/docker.sock:/var/run/docker.sock
lsp-c:
build:
context: ./docker/lsp/clangd
dockerfile: Dockerfile
image: lsp-c:latest
container_name: lsp-c
restart: always
ports:
- "4594:3000"
networks:
- monaco-editor-lsp-next
healthcheck:
test: [ "CMD-SHELL", "nc -zv localhost 3000" ]
interval: 10s
timeout: 5s
retries: 5
lsp-cpp:
build:
context: ./docker/lsp/clangd
dockerfile: Dockerfile
image: lsp-cpp:latest
container_name: lsp-cpp
restart: always
ports:
- "4595:3000"
networks:
- monaco-editor-lsp-next
healthcheck:
test: [ "CMD-SHELL", "nc -zv localhost 3000" ]
interval: 10s
timeout: 5s
retries: 5
networks:
monaco-editor-lsp-next:
name: monaco-editor-lsp-next
driver: bridge