Portainer Documentation
Official Website
Get 5 Nodes of BE Free
Search…
2.13
Welcome
What's new in version 2.13
Release Notes
Getting Started
Introduction
Portainer architecture
Requirements and prerequisites
Install Portainer
Upgrading Portainer
Using Portainer
Home
Docker/Swarm
Kubernetes
Azure ACI
Nomad
Edge Compute
Account settings
Administering Portainer
Users
Environments
Registries
Licenses
Authentication logs
Settings
Frequently Asked Questions
Portainer Concepts
Installing
Upgrading
Troubleshooting
Contributing
Advanced Topics
CLI configuration options
App templates
Build and host your own app templates
App template JSON format
The Portainer Edge Agent
Access control
Reset the admin user's password
Security and compliance
Encrypting the Portainer database
Using your own SSL certificate with Portainer
Using Portainer with reverse proxies
Helm chart configuration options
Kubernetes roles and bindings
Deprecated and removed features
API
Accessing the Portainer API
API documentation
API usage examples
Get More Help
YouTube
Slack
Discord
Open a support request
Contribute to Portainer
Contribute
Build instructions
Powered By
GitBook
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:
1
git clone https://github.com/portainer/templates.git portainer-templates
2
cd portainer-templates
3
# Edit the file templates.json
4
docker build -t portainer-templates .
5
docker run -d -p "8080:80" portainer-templates
Copied!
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:
1
docker run -d -p "8080:80" -v "${PWD}/templates.json:/usr/share/nginx/html/templates.json" portainer-templates
Copied!
For more information about the format of the app template, go
here
.
Advanced Topics - Previous
App templates
Next
App template JSON format
Last modified
16d ago
Copy link
Edit on GitHub