Skip to content

swarmlibs/portainer-template-server

Repository files navigation

About

A simple customizable Portainer template server.

Usage

NAME:
   portainer-template-server - Portainer template server

USAGE:
   portainer-template-server [global options] command [command options]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --host value                                   Host to listen on (default: "0.0.0.0")
   --port value                                   Port to listen on (default: "4242")
   --repos-url value                              URL to a list of template URLs
   --template-version value                       Set the version of the template response (default: "3")
   --template-url value [ --template-url value ]  URL to a template file
   --help, -h                                     show help

Example

portainer-template-server --repos-url=https://raw.githubusercontent.com/swarmlibs/portainer-template-extras/refs/heads/main/repos.json

# or, manually specify the template URLs
portainer-template-server \
   --template-url=https://raw.githubusercontent.com/portainer/templates/v3/templates.json \
   --template-url=https://raw.githubusercontent.com/swarmlibs/portainer-templates/refs/heads/main/templates.json

Docker Compose

services:
  server:
    image: ghcr.io/swarmlibs/portainer-template-server
    command: --repos-url=https://raw.githubusercontent.com/swarmlibs/portainer-template-extras/refs/heads/main/repos.json
    ports:
      - "4242:4242"

Endpoints

  • / - Returns the list of template urls
  • /templates.json - Returns the combined templates

License

Licensed under the MIT License.