letsencrypt_service_data.tmpl 586 B

1234567891011
  1. LETSENCRYPT_CONTAINERS=({{ range $host, $containers := groupBy $ "Env.LETSENCRYPT_HOST" }}{{ range $container := $containers }} '{{ printf "%.12s" $container.ID }}' {{ end }}{{ end }})
  2. {{ range $hosts, $containers := groupBy $ "Env.LETSENCRYPT_HOST" }}
  3. {{ range $container := $containers }}{{ $cid := printf "%.12s" $container.ID }}
  4. LETSENCRYPT_{{ $cid }}_HOST=( {{ range $host := split $hosts "," }}'{{ $host }}' {{ end }})
  5. LETSENCRYPT_{{ $cid }}_EMAIL="{{ $container.Env.LETSENCRYPT_EMAIL }}"
  6. LETSENCRYPT_{{ $cid }}_TEST="{{ $container.Env.LETSENCRYPT_TEST }}"
  7. {{ end }}
  8. {{ end }}