Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 13d2521

Browse files
committed
feat: add mountpoints for weaviate_data and models_path
This will allow to: - run image with persistent, pre-created weaviate_data - run image with previously downloaded models Closes: #269
1 parent 1e52984 commit 13d2521

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ ENV CODEGATE_OLLAMA_URL=
106106
ENV CODEGATE_APP_LOG_LEVEL=WARNING
107107
ENV CODEGATE_LOG_FORMAT=TEXT
108108

109+
# Define volumes for persistent data
110+
VOLUME ["/app/weaviate_data", "/app/models"]
111+
109112
# Set the container's default entrypoint
110113
EXPOSE 8989
111114
ENTRYPOINT ["/app/scripts/entrypoint.sh"]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ docker run -p 8989:8989 -p 8990:80 ghcr.io/stacklok/codegate/codegate:latest
159159

160160
# With persistent data
161161
docker run -p 8989:8989 -p 8990:80 -v /path/to/volume:/app/weaviate_data ghcr.io/stacklok/codegate/codegate:latest
162+
163+
# With persistent models
164+
docker run -p 8989:8989 -p 8990:80 -v /path/to/volume:/app/models ghcr.io/stacklok/codegate/codegate:latest
162165
```
163166

164167
### Exposed parameters

0 commit comments

Comments
 (0)