iac/modules/castopod/files/valkey.container.tftpl
Florian Maury 1b9eeb1288 blip
2025-01-10 16:10:39 +01:00

25 lines
637 B
Text

[Unit]
Description = "Valkey Container"
Wants=generate_secrets.service
After=generate_secrets.service
[Container]
ContainerName = "${valkey_container_name}"
Image = "docker.io/valkey/valkey:${valkey_version}"
Volume = ${secrets_path}/valkey-entrypoint.sh:/usr/local/bin/valkey-entrypoint.sh:ro
Volume = ${valkey_cache_volume_name}.volume:/data:z
Network = ${castopod_backend_network_name}.network
Entrypoint=/usr/local/bin/valkey-entrypoint.sh
# skips find/chown in docker entrypoint which tries to chown lost+found and receive a perm denied
User=valkey
Group=valkey
[Service]
Restart=on-failure
[Install]
WantedBy=default.target