Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

docker compose create a new network interface

Open nobeltnium opened this issue 6 months ago • 2 comments

All of my dockers are running on the IP range 172.17.0.0/16 and I want onlyoffice-documentserver to run on that subnet too.

However when I run docker-compose up -d, a new network interface with IP range of 172.18.0.0/16 would be created, and onlyoffice will run on that. I don't want this, which part of the files should I change? I scrape the whole directory with grep looking for '172.18', ip, network but did't find anything relate to network config

nobeltnium avatar Jul 01 '25 09:07 nobeltnium

Hello @nobeltnium !

Docker Compose automatically creates a new network and assigns it an available IP range. To fix this, you need to add network settings to your compose file with explicit subnet specification. Could you provide your docker-compose.yml file?

avdddd1111 avatar Jul 03 '25 10:07 avdddd1111

This is my docker-compose.yml https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/docker-compose.yml

Literally cloned the whole directory to my machine, cd into it and execute docker-compose up -d I looked into the file but didn't see anything regarding network/subnet config. May be it was located somewhere else?

nobeltnium avatar Jul 07 '25 10:07 nobeltnium