[GH-ISSUE #152] Unable to connect through https #86

Closed
opened 2026-02-26 09:36:09 +03:00 by kerem · 1 comment
Owner

Originally created by @wouterVE on GitHub (Mar 14, 2019).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/152

What is the current behavior?

When I use http (port 80) it works flawlessly, but when starting the docker with https (port 443) I got a connection error.

Here is the command I use to run the docker image

docker run -i -t -d -p 443:443 --restart=always -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver
When I open the page in a browser, I got an ERR_CONNECTION_REFUSED message.
Though, docker is listtening on port 443:

$lsof -i :443
COMMAND    PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
docker-pr 2967 root    4u  IPv4 13839915      0t0  TCP 192.168.218.10:https (LISTEN)

What could possibly be wrong? (the certificates are in the right place but I don't think this can cause this trouble)

DocumentServer Docker tag:
Latest

Host Operating System:
Xubuntu 16.04.5 LTS
Docker-ce 5.18

Originally created by @wouterVE on GitHub (Mar 14, 2019). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/152 **What is the current behavior?** When I use http (port 80) it works flawlessly, but when starting the docker with https (port 443) I got a connection error. Here is the command I use to run the docker image `docker run -i -t -d -p 443:443 --restart=always -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver ` When I open the page in a browser, I got an `ERR_CONNECTION_REFUSED` message. Though, docker is listtening on port 443: ``` $lsof -i :443 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME docker-pr 2967 root 4u IPv4 13839915 0t0 TCP 192.168.218.10:https (LISTEN) ``` What could possibly be wrong? (the certificates are in the right place but I don't think this can cause this trouble) **DocumentServer Docker tag:** Latest **Host Operating System:** Xubuntu 16.04.5 LTS Docker-ce 5.18
kerem closed this issue 2026-02-26 09:36:09 +03:00
Author
Owner

@wouterVE commented on GitHub (Mar 18, 2019):

I've found a workaround using a reverse proxy with docker running on port 8000.

<!-- gh-comment-id:473804554 --> @wouterVE commented on GitHub (Mar 18, 2019): I've found a workaround using a `reverse proxy` with docker running on port 8000.
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#86
No description provided.