A bounce of Portainer templates, pre-configured for use with Traefik. Simple, no frills, just made to be up and running in a few minutes.
Containers and services may be labeled with:
autoheal=true
to restart unhealthy containersdiun.enable=true
to check for image updatesdocker-volume-backup.stop-during-backup=true
to stop containers during backup
In Portainer web UI, under Settings → General → App Templates, use the following URL:
https://raw.githubusercontent.com/gremo/portainer-templates/refs/heads/main/templates.json
Then in Home → Templates → Applications you should see all the available applications.
Generally, templates only allow you to change the Traefik network and endpoint to use while configuration of the endpoint, certificates, and redirections are your responsibility (see below). If you use the following conventions, no major changes are required when deploying a container or a stack.
Default Traefik network name: traefik
Containers and stacks using Traefik must specify the Traefik network, which must be created beforehand as external. Ensure that Traefik itself is included in this network.
Default secure Traefik endpoint name: websecure
Configure the secure endpoint correctly on port 443
:
--entrypoints.web.address=:80
--entrypoints.websecure.address=:443
Make sure that both ports 80
(HTTP) and 443
(HTTPS) are exposed by Traefik and are accessible through the firewall.
You probably want an automatic certificate issuance, this example shows a Let's Encrypt resolver configured with the TLS challenge:
--entrypoints.websecure.http.tls.certresolver=letsencrypt
--certificatesresolvers.letsencrypt.acme.email=your-email@example.com
--certificatesresolvers.letsencrypt.acme.tlschallenge=true
--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json
You may also want to enable automatic redirection from HTTP to HTTPS:
--entrypoints.web.http.redirections.entryPoint.to=websecure
--entrypoints.web.http.redirections.entrypoint.permanent=true
--entrypoints.web.http.redirections.entryPoint.scheme=https
All kinds of contributions are welcome and appreciated. See the contributing guidelines, the community looks forward to your contributions!
Released under the terms of the ISC License.