Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Self hosting port exposure #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davidfiala opened this issue May 22, 2025 · 0 comments
Closed

Self hosting port exposure #300

davidfiala opened this issue May 22, 2025 · 0 comments

Comments

@davidfiala
Copy link

davidfiala commented May 22, 2025

I've made the following modifications to decrease the potential exposure of services during self hosting.

I'd like to know if there's any reason not to apply them (side effects I didn't realize), and whether we should PR them in.

In .env, I do not want the 3001 and 3002 exposed to any interface except for my reverse proxy on the host:

# Before:
HOST_BACKEND_PORT="3001:3001"
HOST_CLIENT_PORT="3002:3002"
# After:
HOST_BACKEND_PORT="127.0.0.1:3001:3001"
HOST_CLIENT_PORT="127.0.0.1:3002:3002"

Likewise, I do not want clickhouse exposed outside of the private/internal docker network, so I've removed their exposed ports.

$ git diff docker-compose.yml
diff --git a/docker-compose.yml b/docker-compose.yml
index d1d4029..963043b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -22,9 +22,9 @@ services:
   clickhouse:
     container_name: clickhouse
     image: clickhouse/clickhouse-server:25.4.2
-    ports:
-      - "8123:8123"
-      - "9000:9000"
+#    ports:
+#      - "8123:8123"
+#      - "9000:9000"
     volumes:
       - clickhouse-data:/var/lib/clickhouse
       - ./clickhouse_config:/etc/clickhouse-server/config.d
@rybbit-io rybbit-io locked and limited conversation to collaborators May 23, 2025
@smileBeda smileBeda converted this issue into discussion #305 May 23, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant