[Unit] Description=HomeBox database container [Container] AutoUpdate=registry ContainerName=homebox-database Environment=POSTGRES_USER=homebox Environment=POSTGRES_DB=homebox Environment=TZ=Europe/Zurich HealthCmd=pg_isready -U homebox HealthInterval=30s HealthTimeout=10s HealthRetries=5 Image=docker.io/postgres:18 Label=io.containers.autoupdate=registry Pod=homebox.pod Secret=database-password,type=env,target=POSTGRES_PASSWORD StartWithPod=true Timezone=Europe/Zurich Volume=homebox-database.volume:/var/lib/postgresql Volume=/var/mnt/nas/containers/homebox/storage/database-backup:/backup [Service] Restart=always [Install] WantedBy=default.target