# vim: ft=systemd
[Unit]
Requires=immich-redis.service immich-postgres.service
After=immich-redis.service immich-postgres.service

[Container]
Environment=IMMICH_VERSION=v2.5.6 DB_HOSTNAME=localhost DB_DATABASE_NAME=immich DB_USERNAME=immich DB_PASSWORD=immich REDIS_HOSTNAME=localhost
Image=ghcr.io/immich-app/immich-server:v2.5.6
Pod=immich.pod

Volume={{ immich_upload_dir }}:/data
Volume=/etc/localtime:/etc/localtime:ro

{% for library in immich_libraries %}
Volume={{ library.path }}:/mnt/libraries/{{ library.name }}
{% endfor %}

User=0

[Service]
Restart=always
