update
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
---
|
||||
services:
|
||||
whoami:
|
||||
hostname: << container_hostname >>
|
||||
image: traefik/whoami:v1.11.0
|
||||
restart: << restart_policy >>
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=<< traefik_network >>
|
||||
- traefik.http.services.whoami-web.loadbalancer.server.port=80
|
||||
- traefik.http.routers.whoami-http.service=whoami-web
|
||||
- traefik.http.routers.whoami-http.rule=Host(`<< traefik_host >>.<< traefik_domain >>`)
|
||||
- traefik.http.routers.whoami-http.entrypoints=<< traefik_entrypoint >>
|
||||
<%- if traefik_tls_enabled %>
|
||||
- traefik.http.routers.whoami-https.rule=Host(`<< traefik_host >>.<< traefik_domain >>`)
|
||||
- traefik.http.routers.whoami-https.entrypoints=<< traefik_tls_entrypoint >>
|
||||
- traefik.http.routers.whoami-https.tls=true
|
||||
- traefik.http.routers.whoami-https.tls.certresolver=<< traefik_tls_certresolver >>
|
||||
<%- endif %>
|
||||
networks:
|
||||
- << traefik_network >>
|
||||
|
||||
networks:
|
||||
<< traefik_network >>:
|
||||
external: true
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"slug": "whoami",
|
||||
"kind": "compose",
|
||||
"metadata": {
|
||||
"name": "Whoami",
|
||||
"description": "Simple HTTP service that echoes back request information. Useful for testing reverse proxy configurations, load balancers, and network setups.",
|
||||
"tags": [
|
||||
"traefik",
|
||||
"testing",
|
||||
"http"
|
||||
],
|
||||
"icon": {
|
||||
"provider": "simple-icons",
|
||||
"id": "traefikproxy",
|
||||
"color": "rose"
|
||||
},
|
||||
"draft": false,
|
||||
"version": {
|
||||
"name": "v1.11.0",
|
||||
"source_dep_name": "traefik/whoami",
|
||||
"source_dep_version": "v1.11.0"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"title": "General",
|
||||
"name": "general",
|
||||
"items": [
|
||||
{
|
||||
"name": "restart_policy",
|
||||
"type": "enum",
|
||||
"title": "Container restart policy",
|
||||
"required": true,
|
||||
"default": "unless-stopped",
|
||||
"config": {
|
||||
"options": [
|
||||
"unless-stopped",
|
||||
"always",
|
||||
"on-failure",
|
||||
"no"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "container_hostname",
|
||||
"type": "str",
|
||||
"title": "Container hostname",
|
||||
"required": false,
|
||||
"default": "whoami",
|
||||
"description": "Container hostname (optional)",
|
||||
"config": {
|
||||
"placeholder": "whoami"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Traefik",
|
||||
"name": "traefik",
|
||||
"items": [
|
||||
{
|
||||
"name": "traefik_host",
|
||||
"type": "str",
|
||||
"title": "Host",
|
||||
"required": true,
|
||||
"config": {
|
||||
"placeholder": "whoami"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_domain",
|
||||
"type": "str",
|
||||
"title": "Domain",
|
||||
"required": true,
|
||||
"config": {
|
||||
"placeholder": "home.arpa"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_entrypoint",
|
||||
"type": "str",
|
||||
"title": "Entrypoint",
|
||||
"required": true,
|
||||
"default": "web",
|
||||
"config": {
|
||||
"placeholder": "web"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_network",
|
||||
"type": "str",
|
||||
"title": "Traefik network name",
|
||||
"required": true,
|
||||
"default": "traefik",
|
||||
"config": {
|
||||
"placeholder": "traefik"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_tls_enabled",
|
||||
"type": "bool",
|
||||
"title": "TLS",
|
||||
"required": false,
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"name": "traefik_tls_entrypoint",
|
||||
"type": "str",
|
||||
"title": "TLS Entrypoint",
|
||||
"required": true,
|
||||
"default": "websecure",
|
||||
"config": {
|
||||
"placeholder": "websecure"
|
||||
},
|
||||
"needs": [
|
||||
"traefik_tls_enabled=true"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "traefik_tls_certresolver",
|
||||
"type": "str",
|
||||
"title": "Cert Resolver",
|
||||
"required": true,
|
||||
"default": "cloudflare",
|
||||
"config": {
|
||||
"placeholder": "cloudflare"
|
||||
},
|
||||
"needs": [
|
||||
"traefik_tls_enabled=true"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user