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
# Start containers in detached mode
docker compose -f ./docker/compose.yml up -d
docker compose up -d
```
### 🔧 Manual Setup
@ -46,7 +46,7 @@ git clone https://github.com/cfngc4594/monaco-editor-lsp-next
cd monaco-editor-lsp-next
# 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
bun install

View File

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