feat(docker): simplify docker compose commands and add compose.yml for service configuration

This commit is contained in:
cfngc4594 2025-02-21 19:56:49 +08:00
parent 8f5be0e437
commit ecbb083008
2 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ git clone https://github.com/cfngc4594/monaco-editor-lsp-next
cd monaco-editor-lsp-next cd monaco-editor-lsp-next
# Start containers in detached mode # Start containers in detached mode
docker compose -f ./docker/compose.yml up -d docker compose up -d
``` ```
### 🔧 Manual Setup ### 🔧 Manual Setup
@ -46,7 +46,7 @@ git clone https://github.com/cfngc4594/monaco-editor-lsp-next
cd monaco-editor-lsp-next cd monaco-editor-lsp-next
# Start specific containers (lsp-c and lsp-cpp) in detached mode # Start specific containers (lsp-c and lsp-cpp) in detached mode
docker compose -f ./docker/compose.yml up -d lsp-c lsp-cpp docker compose up -d lsp-c lsp-cpp
# Install project dependencies using Bun package manager # Install project dependencies using Bun package manager
bun install bun install

View File

@ -1,7 +1,7 @@
services: services:
monaco-editor-lsp-next: monaco-editor-lsp-next:
build: build:
context: ../ context: ./
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: monaco-editor-lsp-next container_name: monaco-editor-lsp-next
restart: always restart: always
@ -10,7 +10,7 @@ services:
lsp-c: lsp-c:
build: build:
context: ./lsp/clangd context: ./docker/lsp/clangd
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: lsp-c container_name: lsp-c
restart: always restart: always
@ -19,7 +19,7 @@ services:
lsp-cpp: lsp-cpp:
build: build:
context: ./lsp/clangd context: ./docker/lsp/clangd
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: lsp-cpp container_name: lsp-cpp
restart: always restart: always