oneabe
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
Found the solution for both problems. The docker user did not have acees to
/etc/hosts
and /etc/resolv.conf
.By mounting and creating them, all Container stay healthy and i don't need the second Docker-Network with the assigned ip adresses anymore.51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
hi
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
networks:
immich_network:
ipv4_address: 172.19.0.3
healthcheck:
disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
networks:
immich_network:
ipv4_address: 172.19.0.3
healthcheck:
disable: false
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
# # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
PUID=1000
PGID=100
DB_HOSTNAME=172.19.0.5
REDIS_HOSTNAME=172.19.0.4
# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase
# 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=Europe/Berlin
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
PUID=1000
PGID=100
DB_HOSTNAME=172.19.0.5
REDIS_HOSTNAME=172.19.0.4
# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase
# 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=Europe/Berlin
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
immich_machine_learning | [12/25/24 22:06:04] INFO Starting gunicorn 23.0.0
immich_machine_learning | [12/25/24 22:06:04] INFO Listening at: http://[::]:3003 (9)
immich_machine_learning | [12/25/24 22:06:04] INFO Using worker: app.config.CustomUvicornWorker
immich_machine_learning | [12/25/24 22:06:04] INFO Booting worker with pid: 10
immich_machine_learning | [12/25/24 22:06:10] INFO Started server process [10]
immich_machine_learning | [12/25/24 22:06:10] INFO Waiting for application startup.
immich_machine_learning | [12/25/24 22:06:10] INFO Created in-memory cache with unloading after 300s
immich_machine_learning | of inactivity.
immich_machine_learning | [12/25/24 22:06:10] INFO Initialized request thread pool with 2 threads.
immich_machine_learning | [12/25/24 22:06:10] INFO Application startup complete.
immich_machine_learning | [12/25/24 22:06:04] INFO Starting gunicorn 23.0.0
immich_machine_learning | [12/25/24 22:06:04] INFO Listening at: http://[::]:3003 (9)
immich_machine_learning | [12/25/24 22:06:04] INFO Using worker: app.config.CustomUvicornWorker
immich_machine_learning | [12/25/24 22:06:04] INFO Booting worker with pid: 10
immich_machine_learning | [12/25/24 22:06:10] INFO Started server process [10]
immich_machine_learning | [12/25/24 22:06:10] INFO Waiting for application startup.
immich_machine_learning | [12/25/24 22:06:10] INFO Created in-memory cache with unloading after 300s
immich_machine_learning | of inactivity.
immich_machine_learning | [12/25/24 22:06:10] INFO Initialized request thread pool with 2 threads.
immich_machine_learning | [12/25/24 22:06:10] INFO Application startup complete.
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
Immich is now running with the assigned ip adresses but machine learning Container stays unhealthy,will that be a problem?
docker inspect --format "{{json .State.Health }}" immich_machine_learning | jq
{
"Status": "unhealthy",
"FailingStreak": 7,
"Log": [
{
"Start": "2024-12-25T21:44:40.297003316+01:00",
"End": "2024-12-25T21:44:40.933033119+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:10.933544312+01:00",
"End": "2024-12-25T21:45:11.547075184+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:41.547638281+01:00",
"End": "2024-12-25T21:45:42.181339734+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:12.181963511+01:00",
"End": "2024-12-25T21:46:12.776580142+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:42.77709577+01:00",
"End": "2024-12-25T21:46:43.392345668+01:00",
"ExitCode": 1,
"Output": ""
}
]
}
docker inspect --format "{{json .State.Health }}" immich_machine_learning | jq
{
"Status": "unhealthy",
"FailingStreak": 7,
"Log": [
{
"Start": "2024-12-25T21:44:40.297003316+01:00",
"End": "2024-12-25T21:44:40.933033119+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:10.933544312+01:00",
"End": "2024-12-25T21:45:11.547075184+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:41.547638281+01:00",
"End": "2024-12-25T21:45:42.181339734+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:12.181963511+01:00",
"End": "2024-12-25T21:46:12.776580142+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:42.77709577+01:00",
"End": "2024-12-25T21:46:43.392345668+01:00",
"ExitCode": 1,
"Output": ""
}
]
}
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
ok, will try then.Thank you
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
how can i do that
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
yes
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
```immich_server | Error: getaddrinfo EAI_AGAIN redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'redis'
immich_server | }
```immich_server | Error: getaddrinfo EAI_AGAIN redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'redis'
immich_server | }
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
changed it to redis
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
had a little problem with discord
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
```immich_server | Error: getaddrinfo EAI_AGAIN immich_redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'immich_redis'
immich_server | }
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [NestFactory] Starting Nest application...
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] ClsModule dependencies initialized +1ms
```immich_server | Error: getaddrinfo EAI_AGAIN immich_redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'immich_redis'
immich_server | }
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [NestFactory] Starting Nest application...
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] ClsModule dependencies initialized +1ms
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
thought i would send all logs in, problem is seen in immich_server logs
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Redis version=6.2.16, bits=64, commit=00000000, modified=0, pid=1, just started
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
immich_redis | 1:M 25 Dec 2024 18:27:19.149 * monotonic clock: POSIX clock_gettime
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Running mode=standalone, port=6379.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Server initialized
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Loading RDB produced by version 6.2.16
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB age 507 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB memory usage when created 0.78 Mb
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Done loading RDB, keys loaded: 16, keys expired: 0.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * DB loaded from disk: 0.000 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Ready to accept connections
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Redis version=6.2.16, bits=64, commit=00000000, modified=0, pid=1, just started
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
immich_redis | 1:M 25 Dec 2024 18:27:19.149 * monotonic clock: POSIX clock_gettime
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Running mode=standalone, port=6379.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Server initialized
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Loading RDB produced by version 6.2.16
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB age 507 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB memory usage when created 0.78 Mb
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Done loading RDB, keys loaded: 16, keys expired: 0.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * DB loaded from disk: 0.000 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Ready to accept connections
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
immich_postgres |
immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
immich_postgres |
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] LOG: redirecting log output to logging collector process
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] HINT: Future log output will appear in directory "log".
immich_postgres |
immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
immich_postgres |
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] LOG: redirecting log output to logging collector process
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] HINT: Future log output will appear in directory "log".
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/var/run/postgresql:/var/run/postgresql
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always
volumes:
model-cache:
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/var/run/postgresql:/var/run/postgresql
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always
volumes:
model-cache:
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/redis:/data
healthcheck:
test: redis-cli ping || exit 1
restart: always
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/redis:/data
healthcheck:
test: redis-cli ping || exit 1
restart: always
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#
name: immich
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#
name: immich
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
51 replies
IImmich
•Created by oneabe on 12/25/2024 in #help-desk-support
immich server fails as non-root
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
PUID=1000
PGID=100
REDIS_HOSTNAME=immich_redis
# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase
# 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=Europe/Berlin
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
PUID=1000
PGID=100
REDIS_HOSTNAME=immich_redis
# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase
# 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=Europe/Berlin
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
51 replies