Skip to content

Commit ba4a9aa

Browse files
authored
Merge pull request #499 from JAORMX/nginx-9090
Get nginx to listen on port 9090
2 parents e0f694d + ad37747 commit ba4a9aa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ COPY --from=builder /app /app
8282
# Copy necessary artifacts from the webbuilder stage
8383
COPY --from=webbuilder /usr/src/webapp/dist /var/www/html
8484
# Expose nginx
85-
EXPOSE 80
85+
EXPOSE 9090
8686

8787
# Set the PYTHONPATH environment variable
8888
ENV PYTHONPATH=/app/src

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ make image-build
157157

158158
```bash
159159
# Basic usage with local image
160-
docker run -p 8989:8989 -p 9090:80 codegate:latest
160+
docker run -p 8989:8989 -p 9090:9090 codegate:latest
161161

162162
# With pre-built pulled image
163163
docker pull ghcr.io/stacklok/codegate:latest
164-
docker run --name codegate -d -p 8989:8989 -p 9090:80 ghcr.io/stacklok/codegate:latest
164+
docker run --name codegate -d -p 8989:8989 -p 9090:9090 ghcr.io/stacklok/codegate:latest
165165

166166
# It will mount a volume to /app/codegate_volume
167167
# The directory supports storing Llama CPP models under subdirectory /models
168168
# A sqlite DB with the messages and alerts is stored under the subdirectory /db
169-
docker run --name codegate -d -v /path/to/volume:/app/codegate_volume -p 8989:8989 -p 9090:80 ghcr.io/stacklok/codegate:latest
169+
docker run --name codegate -d -v /path/to/volume:/app/codegate_volume -p 8989:8989 -p 9090:9090 ghcr.io/stacklok/codegate:latest
170170
```
171171

172172
### Exposed parameters
@@ -185,7 +185,7 @@ docker run --name codegate -d -v /path/to/volume:/app/codegate_volume -p 8989:89
185185
server (default to TEXT, can be JSON/TEXT)
186186

187187
```bash
188-
docker run -p 8989:8989 -p 9090:80 -e CODEGATE_OLLAMA_URL=http://1.2.3.4:11434/api ghcr.io/stacklok/codegate:latest
188+
docker run -p 8989:8989 -p 9090:9090 -e CODEGATE_OLLAMA_URL=http://1.2.3.4:11434/api ghcr.io/stacklok/codegate:latest
189189
```
190190

191191
## 🤝 Contributing

nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen 80;
2+
listen 9090;
33

44
server_name localhost;
55

0 commit comments

Comments
 (0)