From 989a6ae0d2d02ce88a8cdb9ccfde595925897649 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 1 Mar 2025 16:06:33 +0800 Subject: [PATCH] feat(compose): add docker socket mount and root user permission configuration --- compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index 9c3f74e..bb925d2 100644 --- a/compose.yml +++ b/compose.yml @@ -14,11 +14,14 @@ services: - lsp-c - lsp-cpp healthcheck: - test: ["CMD-SHELL", "curl --fail http://localhost:3000 || exit 1"] + test: [ "CMD-SHELL", "curl --fail http://localhost:3000 || exit 1" ] interval: 10s timeout: 5s retries: 5 start_period: 10s + user: root + volumes: + - /var/run/docker.sock:/var/run/docker.sock lsp-c: build: @@ -32,7 +35,7 @@ services: networks: - monaco-editor-lsp-next healthcheck: - test: ["CMD-SHELL", "nc -zv localhost 3000"] + test: [ "CMD-SHELL", "nc -zv localhost 3000" ] interval: 10s timeout: 5s retries: 5 @@ -49,7 +52,7 @@ services: networks: - monaco-editor-lsp-next healthcheck: - test: ["CMD-SHELL", "nc -zv localhost 3000"] + test: [ "CMD-SHELL", "nc -zv localhost 3000" ] interval: 10s timeout: 5s retries: 5