[GH-ISSUE #43] Unable to use custom port with https support #27

Closed
opened 2026-02-26 09:35:10 +03:00 by kerem · 0 comments
Owner

Originally created by @e-alfred on GitHub (Apr 24, 2017).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/43

Hello,

I am trying to run the Onlyoffice Docker container on a custom port with https support enabled. If I try to use the command shown here, Ngnix still only listens to port 80 inside the container:

docker run -i -t -d -p 8888:443 \ -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver

I put the certificates in the appropriate folder on the host system. The command netstat -antp inside the container only shows Nginx listening on port 80:

netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:43719           0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      425/python      
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      486/nginx       
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:35174         127.0.0.1:6379          ESTABLISHED -               
tcp        0      0 127.0.0.1:35162         127.0.0.1:6379          ESTABLISHED -               
tcp        0      0 127.0.0.1:36602         127.0.0.1:5672          ESTABLISHED -               
tcp        0      0 127.0.0.1:6379          127.0.0.1:35162         ESTABLISHED -               
tcp        0      0 127.0.0.1:36610         127.0.0.1:5672          ESTABLISHED -               
tcp        0      0 127.0.0.1:35164         127.0.0.1:6379          ESTABLISHED -               
tcp        0      0 127.0.0.1:6379          127.0.0.1:35174         ESTABLISHED -               
tcp        0      0 127.0.0.1:36606         127.0.0.1:5672          ESTABLISHED -               
tcp        0      0 127.0.0.1:35102         127.0.0.1:6379          ESTABLISHED -               
tcp        0      0 127.0.0.1:6379          127.0.0.1:35102         ESTABLISHED -               
tcp        0      0 127.0.0.1:6379          127.0.0.1:35164         ESTABLISHED -               
tcp        0      0 127.0.0.1:50879         127.0.0.1:4369          ESTABLISHED -               
tcp6       0      0 :::5672                 :::*                    LISTEN      -               
tcp6       0      0 :::8080                 :::*                    LISTEN      -               
tcp6       0      0 :::80                   :::*                    LISTEN      486/nginx       
tcp6       0      0 :::4369                 :::*                    LISTEN      -               
tcp6       0      0 ::1:5432                :::*                    LISTEN      -               
tcp6       0      0 :::8126                 :::*                    LISTEN      -               
tcp6       0      0 :::8000                 :::*                    LISTEN      -               
tcp6       0      0 127.0.0.1:5672          127.0.0.1:36610         ESTABLISHED -               
tcp6       0      0 127.0.0.1:5672          127.0.0.1:36602         ESTABLISHED -               
tcp6       0      0 127.0.0.1:4369          127.0.0.1:50879         ESTABLISHED -               
tcp6       0      0 127.0.0.1:5672          127.0.0.1:36606         ESTABLISHED -   
Originally created by @e-alfred on GitHub (Apr 24, 2017). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/43 Hello, I am trying to run the Onlyoffice Docker container on a custom port with https support enabled. If I try to use the command shown here, Ngnix still only listens to port 80 inside the container: `docker run -i -t -d -p 8888:443 \ -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver` I put the certificates in the appropriate folder on the host system. The command `netstat -antp` inside the container only shows Nginx listening on port 80: ``` netstat -antp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:43719 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 425/python tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 486/nginx tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:35174 127.0.0.1:6379 ESTABLISHED - tcp 0 0 127.0.0.1:35162 127.0.0.1:6379 ESTABLISHED - tcp 0 0 127.0.0.1:36602 127.0.0.1:5672 ESTABLISHED - tcp 0 0 127.0.0.1:6379 127.0.0.1:35162 ESTABLISHED - tcp 0 0 127.0.0.1:36610 127.0.0.1:5672 ESTABLISHED - tcp 0 0 127.0.0.1:35164 127.0.0.1:6379 ESTABLISHED - tcp 0 0 127.0.0.1:6379 127.0.0.1:35174 ESTABLISHED - tcp 0 0 127.0.0.1:36606 127.0.0.1:5672 ESTABLISHED - tcp 0 0 127.0.0.1:35102 127.0.0.1:6379 ESTABLISHED - tcp 0 0 127.0.0.1:6379 127.0.0.1:35102 ESTABLISHED - tcp 0 0 127.0.0.1:6379 127.0.0.1:35164 ESTABLISHED - tcp 0 0 127.0.0.1:50879 127.0.0.1:4369 ESTABLISHED - tcp6 0 0 :::5672 :::* LISTEN - tcp6 0 0 :::8080 :::* LISTEN - tcp6 0 0 :::80 :::* LISTEN 486/nginx tcp6 0 0 :::4369 :::* LISTEN - tcp6 0 0 ::1:5432 :::* LISTEN - tcp6 0 0 :::8126 :::* LISTEN - tcp6 0 0 :::8000 :::* LISTEN - tcp6 0 0 127.0.0.1:5672 127.0.0.1:36610 ESTABLISHED - tcp6 0 0 127.0.0.1:5672 127.0.0.1:36602 ESTABLISHED - tcp6 0 0 127.0.0.1:4369 127.0.0.1:50879 ESTABLISHED - tcp6 0 0 127.0.0.1:5672 127.0.0.1:36606 ESTABLISHED - ```
kerem closed this issue 2026-02-26 09:35:10 +03:00
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#27
No description provided.