TrueChartsCatalogClone/stable/wger/4.0.42/templates/_nginx.tpl

23 lines
602 B
Smarty

{{/* Define the nginx container */}}
{{- define "wger.nginx" -}}
image: {{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}
imagePullPolicy: {{ .Values.nginxImage.pullPolicy }}
ports:
- containerPort: {{ .Values.service.main.ports.main.port }}
name: main
securityContext:
runAsUser: 0
runAsGroup: 1000
readOnlyRootFilesystem: false
runAsNonRoot: false
volumeMounts:
- name: wger-config
mountPath: "/etc/nginx/conf.d/default.conf"
subPath: default.conf
readOnly: true
- name: media
mountPath: "/media"
- name: static
mountPath: "/static"
{{- end -}}