GitHub user dosubot[bot] added a comment to the discussion: How to change 
superset container port at Superset 5.0.0?

<!-- Answer -->
To change the Superset container port in 5.0.0, update the ports mapping in 
your docker-compose.yml or Docker run command. For example, to expose Superset 
on host port 8080 while it still listens on 8088 inside the container, use `-p 
8080:8088` or `ports: 8080:8088` in docker-compose.yml. However, the 
superset-websocket container also uses port 8080 by default, so you’ll get a 
conflict if both try to use it at the same time. You must assign different 
ports to each service to avoid this conflict 
([docker-compose.yml](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker-compose.yml)).

If you want Superset to actually listen on 8080 inside the container, set the 
`SUPERSET_PORT` environment variable to 8080 in your Dockerfile or 
docker-compose.yml 
([Dockerfile](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile)).
 For superset-websocket, change its port in both the `ports` mapping and the 
`PORT` environment variable, and also update its config.json if needed 
([superset-websocket 
config](https://github.com/apache/superset/discussions/33293)).

If you change either service’s port, update the nginx config 
(docker/nginx/templates/superset.conf.template) so it proxies to the correct 
ports for both Superset and superset-websocket ([nginx 
template](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/nginx/templates/superset.conf.template)).

In short: Superset and superset-websocket must use different ports, and you 
need to update all relevant port mappings, environment variables, and nginx 
config to match.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/d6e5d5d6-45d0-46ac-a5fd-fb56ed7bd0ad?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34609)

GitHub link: 
https://github.com/apache/superset/discussions/34609#discussioncomment-14042071

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to