Customizing the Docker Compose file
Modified on: Wed, 24 Jun, 2020 at 12:57 PM
The itds.yml file provided should not be modified. This is to ensure that we can support our customers’ server deployments, and ensure that all servers are deployed in a consistent manner. In addition, should these files require an update in the future, modifications could prove problematic if the files have been customized by the end user.
The Docker-compose files are kept as generic as possible to avoid any conflicts with our customers deployment environments.
If you would like to make changes to the Docker-compose file, please make use of Dockers multiple compose file option. This option will allow you to customize the configuration used to run your servers, without modifying the original files that we provide.
Example: Customizing the default network
A common change that you may want to make is to customize the subnet used by the default network.
We should be able to make this change by adding the following to the end of the Docker-compose (e.g. itds.yml) file:
- subnet: 18.104.22.168/16
We would like to make this change to the deployment of our iTDS server, but without editing the itds.yml file.
We can create a new Docker-compose file that will contain our custom deployment options for the server. We will create a new file called “itds-custom.yml” with the following contents:
- subnet: 192.0.2.0/24
We can now run our server using a combination of the two configurations files, with the following command:
docker-compose -f itds.yml -f itds-custom.yml up