GITBOOK-68: Update template instructions to remove mention of bind mounting template files

2.18
James Carppe 2023-08-30 00:21:42 +00:00 committed by gitbook-bot
parent 58a0463df5
commit b223d2634d
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# Build and host your own app templates
The best way to do this is to [bind-mount your own template file](../cli.md#defining-your-own-app-templates) directly into the Portainer container. You can also build your own container that will use Nginx to serve the template definitions.
To provide your own template files, you will need to host your files somewhere accessible by the Portainer Server instance. This could be somewhere like GitHub, a web server, or perhaps a container running nginx.
First, clone the [Portainer templates repository](https://github.com/portainer/templates), edit the templates file, then build and run the container:
As an example, the Portainer templates repository includes a `Dockerfile` that lets you start it as a container to serve the JSON file. To set this up, first clone the [Portainer templates repository](https://github.com/portainer/templates), edit the templates file, then build and run the container:
```
git clone https://github.com/portainer/templates.git portainer-templates