42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
[Container]
|
|
AutoUpdate=registry
|
|
ContainerName=immich-server
|
|
Environment="DB_DATABASE_NAME=immich"
|
|
Environment="DB_HOSTNAME=192.168.11.2"
|
|
Environment="DB_PASSWORD=postgres"
|
|
Environment="DB_USERNAME=postgres"
|
|
Environment="REDIS_HOSTNAME=192.168.11.2"
|
|
Image=ghcr.io/immich-app/immich-server:release
|
|
# Network=immich.network
|
|
# Pod=immich.pod
|
|
PublishPort=3001:2283
|
|
Volume=/etc/localtime:/etc/localtime:ro
|
|
Volume=immich-server-upload.volume:/usr/src/app/upload:Z
|
|
# Volume=immich-server-external.volume:/usr/src/app/external:Z
|
|
Volume=/mnt/free-file-sync/still:/usr/src/app/external/still:Z
|
|
Volume=/mnt/free-file-sync/moving:/usr/src/app/external/moving:Z
|
|
|
|
[Service]
|
|
Restart=no
|
|
|
|
[Unit]
|
|
Requires=immich-learning.service
|
|
After=immich-learning.service
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|
|
|
|
# https://immich.app/docs/install/environment-variables
|
|
|
|
# podman pull ghcr.io/immich-app/immich-server:release
|
|
# systemctl --user daemon-reload
|
|
# systemctl --user start immich-server
|
|
# systemctl --user status immich-server
|
|
# journalctl -fu immich-server.service
|
|
# podman logs immich-server
|
|
# systemctl --user stop immich-server
|
|
# systemctl --user disable immich-server
|
|
# podman exec -ti immich-server /bin/sh
|
|
# podman exec -ti immich-server /bin/bash
|
|
# Environment="DB_HOST=192.168.11.2"
|