Skip to content

Commit 43f694e

Browse files
committed
fix(labels): fix start_once
1 parent c4f7805 commit 43f694e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/redis/0/docker-compose.yml.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ services:
1111
{{- if ne .Values.REDIS_SERVER_HOST_LABEL ""}}
1212
io.rancher.scheduler.affinity:host_label: ${REDIS_SERVER_HOST_LABEL}
1313
{{- end}}
14-
io.rancher.container.start_once: 'true'
1514
io.rancher.container.pull_image: always
1615
io.rancher.sidekicks: redis-server-config
1716
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
@@ -71,6 +70,7 @@ services:
7170
labels:
7271
io.rancher.container.pull_image: always
7372
io.rancher.container.hostname_override: container_name
73+
io.rancher.container.start_once: 'true'
7474
redis-sentinel-config:
7575
image: lgatica/redis-config
7676
environment:
@@ -84,6 +84,7 @@ services:
8484
labels:
8585
io.rancher.container.pull_image: always
8686
io.rancher.container.hostname_override: container_name
87+
io.rancher.container.start_once: 'true'
8788

8889
{{- if or (.Values.REDIS_VOLUME_NAME) (.Values.SENTINEL_VOLUME_NAME)}}
8990
volumes:

0 commit comments

Comments
 (0)