Skip to content

Commit ad37747

Browse files
committed
Get nginx to listen on port 9090
port 80 is privileged and blocked in Linux systems (unless we run the container as privileged). Let's listen on port 9090 instead. Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent cc76070 commit ad37747

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)