[GH-ISSUE #658] How to modify the docker port number #280

Closed
opened 2026-02-26 10:31:34 +03:00 by kerem · 3 comments
Owner

Originally created by @quixote1304629 on GitHub (May 6, 2023).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/658

This issue is unique.

  • I have used the search tool and did not find an issue describing my idea.

Your idea.

When using the docker image to publish the container, is it possible to modify the service port number? Instead of 80, use 8090.

For some special reasons, I must specify the port number of expose, such as “EXPOSE 8090” instead of “EXPOSE 80”

Do I need to modify the startup port in the code?

Originally created by @quixote1304629 on GitHub (May 6, 2023). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/658 ### This issue is unique. - [X] I have used the [search tool](https://github.com/ONLYOFFICE/DocumentServer/issues?q=) and did not find an issue describing my idea. ### Your idea. When using the docker image to publish the container, is it possible to modify the service port number? Instead of 80, use 8090. For some special reasons, I must specify the port number of expose, such as “EXPOSE 8090” instead of “EXPOSE 80” Do I need to modify the startup port in the code?
kerem 2026-02-26 10:31:34 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dvaerum commented on GitHub (May 13, 2023):

It helps a lot if you explain what your end goal is (at least here it is not obvious to me) and show how you have tried to attire it because this as “EXPOSE 8090” instead of “EXPOSE 80” stuff sounds to me like you are trying to build a new container image.
However, If I understand you, correctly your problem sounds like something there you should use the argument --publish/-p
https://docs.docker.com/engine/reference/commandline/run/#publish

But I don't know if you don't about this feature in docker, or if it is not working for you 🤷‍♂️

<!-- gh-comment-id:1707964437 --> @dvaerum commented on GitHub (May 13, 2023): It helps a lot if you explain what your end goal is (at least here it is not obvious to me) and show how you have tried to attire it because this `as “EXPOSE 8090” instead of “EXPOSE 80”` stuff sounds to me like you are trying to build a new container image. However, If I understand you, correctly your problem sounds like something there you should use the argument `--publish`/`-p` https://docs.docker.com/engine/reference/commandline/run/#publish But I don't know if you don't about this feature in docker, or if it is not working for you 🤷‍♂️
Author
Owner

@igwyd commented on GitHub (Sep 6, 2023):

Hello @quixote1304629, sorry for the late reply. I agree with @dvaerum and you can't change the ports inside the container, but you can choose the publish port - Running ONLYOFFICE Document Server on Different Port.

<!-- gh-comment-id:1707964441 --> @igwyd commented on GitHub (Sep 6, 2023): Hello @quixote1304629, sorry for the late reply. I agree with @dvaerum and you can't change the ports inside the container, but you can choose the ```publish``` port - [Running ONLYOFFICE Document Server on Different Port](https://github.com/ONLYOFFICE/Docker-DocumentServer#running-onlyoffice-document-server-on-different-port).
Author
Owner

@Rita-Bubnova commented on GitHub (Sep 6, 2023):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:1707965303 --> @Rita-Bubnova commented on GitHub (Sep 6, 2023): I close this issue. Feel free to comment or reopen it if you got further questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#280
No description provided.