Build and host your own app templates
The best way to do this is to bind-mount your own template file directly into the Portainer container. You can also build your own container that will use Nginx to serve the template definitions.
First, clone the Portainer templates repository, edit the templates file, then build and run the container:
Access your template definitions at http://docker-host:8080/templates.json
.
You can also mount the templates.json
file inside the container, so you can edit the file and see live changes:
For more information about the format of the app template, go here.
Last updated