Changing Port

IIS, Apache
Post Reply
spectre216
Posts: 1
Joined: Thu Jun 08, 2017 11:54 pm

Changing Port

Post by spectre216 » Thu Jun 08, 2017 11:55 pm

I know by default OnlyOffice runs on port 80/443. Is there a way to change this port so I can run it on a custom port? I am using the community server edition of OnlyOffice.

Maxim
Posts: 1747
Joined: Tue Oct 11, 2016 2:34 pm

Re: Changing Port

Post by Maxim » Tue Jun 13, 2017 9:05 am

Hello spectre216!
Installing Community Server integrated with Document and Mail Servers
You can run Onlyoffice on custom port but you need to delete all previous containers and follow steps. If you do not need Mail Server - skip this step. Like this
STEP 1: Create the 'onlyoffice' network

Code: Select all

docker network create --driver bridge onlyoffice

STEP 2: Install Document Server

Code: Select all

sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-document-server \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
    onlyoffice/documentserver

STEP 3: Install Community Server

Code: Select all

sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-community-server \
    -p 80:80 -p 5222:5222 -p 443:443 \
    -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \
    -v /app/onlyoffice/CommunityServer/mysql:/var/lib/mysql \
    -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/DocumentServerData \
    -e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server \
    -e MAIL_SERVER_DB_HOST=onlyoffice-mail-server \
    onlyoffice/communityserver

-p 80:80 -p 5222:5222 -p 443:443 \ - this line for your custom ports

Post Reply