iac/modules/castopod/files/valkey.container.tftpl

26 lines
637 B
Text
Raw Normal View History

2025-01-10 15:10:39 +00:00
[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