mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
Feat: Immich Server
This commit is contained in:
31
immich/immich.container
Normal file
31
immich/immich.container
Normal file
@@ -0,0 +1,31 @@
|
||||
[Unit]
|
||||
Description=Immich Container
|
||||
Requires=immich_db.service immich_valkey.service
|
||||
After=immich_db.service immich_valkey.service
|
||||
|
||||
[Container]
|
||||
Pod=immich.pod
|
||||
ContainerName=immich
|
||||
Image=ghcr.io/immich-app/immich-server:release
|
||||
|
||||
# Enable auto-update container
|
||||
AutoUpdate=registry
|
||||
# pass this to attach it to container
|
||||
EnvironmentFile=./.env
|
||||
|
||||
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||
Volume=/etc/localtime:/etc/localtime:ro
|
||||
|
||||
# gpu acceleration
|
||||
AddDevice=/dev/dri
|
||||
GroupAdd=989
|
||||
|
||||
[Service]
|
||||
# pass this to autofill above variables
|
||||
EnvironmentFile=%h/.config/containers/systemd/immich/.env
|
||||
Restart=always
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
Reference in New Issue
Block a user