mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
services:
|
|
monaco-editor-lsp-next:
|
|
image: cfngc4594/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:
|
|
image: cfngc4594/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:
|
|
image: cfngc4594/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
|