{{ extends "_base" }} {{ import "../_modules/service" }} {{ block script() }} {{ end }} {{ block body_content() }} Create service {{ i18n("field.name") }} {{ i18n("field.image") }} DockerHub {{ registry := .Service.Registry }} {{ range .Registries }} {{.Name}} {{ end }} {{ if .Service.RegistryURL }} {{ .Service.RegistryURL }} {{ else }} {{ end }} Do not enter registry host! {{ yield form_mode() }} {{ yield form_network() }} {{ yield form_main_right() }} Environments {{ yield options_table(name="env", items=.Service.Environments) }} Service Labels {{ yield options_table(name="slabel", items=.Service.ServiceLabels) }} Container Labels {{ yield options_table(name="clabel", items=.Service.ContainerLabels) }} {{ yield form_others() }} {{ yield form_submit(url="/service/") }} {{ yield dialog(name="secret", items=.Secrets) }} {{ yield dialog(name="config", items=.Configs) }} {{ end }}
{{ if .Service.RegistryURL }} {{ .Service.RegistryURL }} {{ else }} {{ end }}
Do not enter registry host!