diff --git a/templates.json b/templates.json index 7d1bb731..8c975a90 100644 --- a/templates.json +++ b/templates.json @@ -782,5 +782,55 @@ "bind": "/var/run/docker.sock" } ] + }, + { + "type": "container", + "title": "Træfik 1.5", + "description": + "Træfik (pronounced like traffic) is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS, and a lot more) to manage its configuration automatically and dynamically.", + "note": "Træfik documentation", + "platform": "linux", + "categories": ["reverse proxy"], + "logo": + "https://d33wubrfki0l68.cloudfront.net/e29410f43273a18d40e1bd6e41641f5afdfc8057/eb7ca/traefik.logo.png", + "image": "traefik:1.5-alpine", + "command": + "/bin/sh -c '/usr/local/bin/traefik --docker --docker.domain=${TRAEFIK_BASE_DOMAIN:-docker.localhost} --docker.exposedByDefault=true --entrypoints=\"Name:http Address::${TRAEFIK_PORT_HTTP:-80}\" --entrypoints='Name:https Address::${TRAEFIK_PORT_HTTPS:-443} TLS' --entrypoints='Name:traefik Address::${TRAEFIK_PORT_DASHBOARD:-8080}' --logLevel=WARN --ping --api --api.statistics.recenterrors=20 ", + "network": "host", + "env": [ + { + "name": "TRAEFIK_BASE_DOMAIN", + "label": "base domain name", + "description": "Default domain for Traefik (default: docker.localhost)" + }, + { + "name": "TRAEFIK_PORT_HTTP", + "label": "HTTP port", + "description": + "Port Traefik will listen on for HTTP traffic (default: 80)" + }, + { + "name": "TRAEFIK_PORT_HTTPS", + "label": "HTTPS port", + "description": + "Port Traefik will listen on for HTTPS traffic (default: 443)" + }, + { + "name": "TRAEFIK_PORT_DASHBOARD", + "label": "Dashboard port", + "Description": + "Port on which the Traefik dashboard will be available (default: 8080)" + } + ], + "volumes": [ + { + "container": "/var/run/docker.sock", + "bind": "/var/run/docker.sock" + }, + { + "container": "/traefik.toml", + "bind": "/dev/null" + } + ] } ]