mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 06:17:58 +00:00
Docker: improve documentation for quick setup (#394)
This commit is contained in:
1 parent
b50d821586
commit
1d22a37797
2 files changed
+26
No files matched your search
@@ -68,6 +68,8 @@ SERENA_DASHBOARD_PORT=8080 docker-compose up serena
|
||||
docker-compose up serena-dev
|
||||
```
|
||||
|
||||
Note: Edit the `compose.yaml` file to customize volume mounts for your projects.
|
||||
|
||||
### Using Docker directly
|
||||
|
||||
```bash
|
||||
@@ -83,6 +85,24 @@ docker run -it --rm \
|
||||
serena
|
||||
```
|
||||
|
||||
### Using Docker Compose with Merge Compose files
|
||||
|
||||
To use Docker Compose with merge files, you can create a `compose.override.yml` file to customize the configuration:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
serena:
|
||||
# To work with projects, you must mount them as volumes:
|
||||
volumes:
|
||||
- ./my-project:/workspace/my-project
|
||||
- /path/to/another/project:/workspace/another-project
|
||||
# Add the context for the IDE assistant option:
|
||||
command:
|
||||
- "uv run --directory . serena-mcp-server --transport sse --port 9121 --host 0.0.0.0 --context ide-assistant"
|
||||
```
|
||||
|
||||
See the [Docker Merge Compose files documentation](https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/) for more details on using merge files.
|
||||
|
||||
## Accessing the Dashboard
|
||||
|
||||
Once running, access the web dashboard at:
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
services:
|
||||
serena:
|
||||
image: serena:latest
|
||||
# To work with projects, you must mount them as volumes:
|
||||
# volumes:
|
||||
# - ./my-project:/workspace/my-project
|
||||
# - /path/to/another/project:/workspace/another-project
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
@@ -12,6 +16,8 @@ services:
|
||||
- SERENA_DOCKER=1
|
||||
command:
|
||||
- "uv run --directory . serena-mcp-server --transport sse --port 9121 --host 0.0.0.0"
|
||||
# Add the context for the IDE assistant
|
||||
# - "uv run --directory . serena-mcp-server --transport sse --port 9121 --host 0.0.0.0 --context ide-assistant"
|
||||
|
||||
serena-dev:
|
||||
image: serena:dev
|
||||
|
||||
Reference in new issue
Block a user