add docker immich docs
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
- [Podman immich](#podman-immich)
|
- [Podman immich](#podman-immich)
|
||||||
- [Setup immich Project](#setup-immich-project)
|
- [Setup immich Project](#setup-immich-project)
|
||||||
- [Install immich](#install-immich)
|
- [Install immich with Docker](#install-immich-with-docker)
|
||||||
|
- [Install immich with Rootless Podman](#install-immich-with-rootless-podman)
|
||||||
- [Create the immich user](#create-the-immich-user)
|
- [Create the immich user](#create-the-immich-user)
|
||||||
- [Write the immich compose spec](#write-the-immich-compose-spec)
|
- [Write the immich compose spec](#write-the-immich-compose-spec)
|
||||||
- [A Note on Volumes](#a-note-on-volumes)
|
- [A Note on Volumes](#a-note-on-volumes)
|
||||||
@@ -30,7 +31,19 @@
|
|||||||
- [ ] Expose the quadlet service
|
- [ ] Expose the quadlet service
|
||||||
- [ ] Install a backup service and timer
|
- [ ] Install a backup service and timer
|
||||||
|
|
||||||
## Install immich
|
## Install immich with Docker
|
||||||
|
|
||||||
|
<https://docs.immich.app/install/docker-compose/>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scp active/podman_immich/release-compose.yaml immich:
|
||||||
|
scp active/podman_immich/release-env immich:.env
|
||||||
|
|
||||||
|
mkdir /srv/immich
|
||||||
|
docker compose -f release-compose.yaml up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install immich with Rootless Podman
|
||||||
|
|
||||||
### Create the immich user
|
### Create the immich user
|
||||||
|
|
||||||
@@ -157,7 +170,7 @@ ssh immich systemctl --user restart immich
|
|||||||
npm i -g @immich/cli
|
npm i -g @immich/cli
|
||||||
|
|
||||||
# immich login [url] [key]
|
# immich login [url] [key]
|
||||||
immich login http://192.168.1.216:2283/api HFEJ38DNSDUEG
|
immich login http://192.168.1.216:2283/api <key here>
|
||||||
|
|
||||||
# Check the upload
|
# Check the upload
|
||||||
immich upload --dry-run --recursive directory/
|
immich upload --dry-run --recursive directory/
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ services:
|
|||||||
- ${UPLOAD_LOCATION}:/data
|
- ${UPLOAD_LOCATION}:/data
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- /root/.env
|
||||||
ports:
|
ports:
|
||||||
- '2283:2283'
|
- '2283:2283'
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -42,14 +42,14 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- model-cache:/cache
|
- model-cache:/cache
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- /root/.env
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: immich_redis
|
container_name: immich_redis
|
||||||
image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
|
image: docker.io/valkey/valkey:9@sha256:fb8d272e529ea567b9bf1302245796f21a2672b8368ca3fcb938ac334e613c8f
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: redis-cli ping || exit 1
|
test: redis-cli ping || exit 1
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables
|
# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables
|
||||||
|
|
||||||
# The location where your uploaded files are stored
|
# The location where your uploaded files are stored
|
||||||
UPLOAD_LOCATION=./library
|
UPLOAD_LOCATION=/srv/immich-data/library
|
||||||
|
|
||||||
# The location where your database files are stored. Network shares are not supported for the database
|
# The location where your database files are stored. Network shares are not supported for the database
|
||||||
DB_DATA_LOCATION=./postgres
|
DB_DATA_LOCATION=/srv/immich-db/postgres
|
||||||
|
|
||||||
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||||
# TZ=Etc/UTC
|
# TZ=Etc/UTC
|
||||||
|
|||||||
Reference in New Issue
Block a user