mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
feat(compose): add docker socket mount and root user permission configuration
This commit is contained in:
parent
09f47bcfc5
commit
989a6ae0d2
@ -14,11 +14,14 @@ services:
|
|||||||
- lsp-c
|
- lsp-c
|
||||||
- lsp-cpp
|
- lsp-cpp
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl --fail http://localhost:3000 || exit 1"]
|
test: [ "CMD-SHELL", "curl --fail http://localhost:3000 || exit 1" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
user: root
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
lsp-c:
|
lsp-c:
|
||||||
build:
|
build:
|
||||||
@ -32,7 +35,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- monaco-editor-lsp-next
|
- monaco-editor-lsp-next
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "nc -zv localhost 3000"]
|
test: [ "CMD-SHELL", "nc -zv localhost 3000" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
@ -49,7 +52,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- monaco-editor-lsp-next
|
- monaco-editor-lsp-next
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "nc -zv localhost 3000"]
|
test: [ "CMD-SHELL", "nc -zv localhost 3000" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
Loading…
Reference in New Issue
Block a user