Docker Compose Options
Start the Node using Docker Compose
The Docker container of the Node could also be started using Docker Compose, for more convenient configurations.
Start the container using Docker Compose
1. Create an empty working directory
2. Create a file named docker-compose.yml
in the working directory:
docker-compose.yml
in the working directory:3. Start the Docker container
Now you should already be able to access the WebUI from the browser.
Mount the Model Cache Folder
Since the model preloading takes a long time, often we want to persist the model cache folder outside of the Docker container so that it survives the container recreation during updates. This is easily done by mounting the data folder /app/data
to a local folder on the host machine:
1. Create an empty data folder inside the working directory
2. Add the mounting point in the docker-compose.yml
file
docker-compose.yml
file3. Start the Docker container
Mount the Config File
The configuration file could also be mounted to the local folder, so the config won't be overridden by the container recreating. It is also easier to edit the config file outside of the Docker container.
1. Create an empty config folder inside the working directory
2. Add the mounting point in the docker-compose.yml
file
docker-compose.yml
file3. Start the Docker container
4. A config file will be created automatically after the container creation
For an explanation of all the config items, please refer to the Advanced Configuration.
Last updated