The container ports to be exposed for incoming connections are the following:
- 80 for plain HTTP
- 443 when HTTPS is enabled (see below)
- 5222 for XMPP-compatible instant messaging client (for ONLYOFFICE Talk correct work)
You can expose ports by specifying the -p option in the docker run command:
sudo docker run -i -t -d --privileged -p 80:80 -p 443:443 -p 5222:5222 --cgroupns=host \
-v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \
-v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \
-v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \
-v /sys/fs/cgroup:/sys/fs/cgroup:rw onlyoffice/communityserver
For outgoing connections you need to expose the following ports:
- 80 for HTTP
- 443 for HTTPS
Additional ports to be exposed for the mail client correct work:
- 25 for SMTP
- 465 for SMTPS
- 143 for IMAP
- 993 for IMAPS
- 110 for POP3
- 995 for POP3S