Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ RUN playwright install-deps chromium \
COPY --from=frontend-builder /app/frontend/dist ./frontend/dist
VOLUME ["/data"]
ENV OPENCMO_DB_PATH=/data/data.db
ENV OPENCMO_WEB_HOST=0.0.0.0
EXPOSE 8080
Comment on lines 23 to 24
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve container-wide bind default in image

Removing OPENCMO_WEB_HOST=0.0.0.0 from the image makes opencmo-web fall back to 127.0.0.1 (src/opencmo/web/app.py), so containers started from this image outside this specific compose file (for example docker run -p 8080:8080 ... or Kubernetes) will listen only on loopback inside the container and become unreachable via published ports/Services. The compose override fixes one path, but the base image now regresses as a generally runnable artifact.

Useful? React with 👍 / 👎.

CMD ["opencmo-web"]
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ services:
opencmo:
build: .
ports:
- "8080:8080"
- "127.0.0.1:8080:8080"
environment:
- OPENCMO_WEB_HOST=0.0.0.0
volumes:
- opencmo_data:/data
env_file:
Expand Down
Loading