mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
chore: for redis, use service name as the default (#9109)
chore: use service name as default redis hostname
This commit is contained in:
parent
5a49de5592
commit
0d8a04b43c
4 changed files with 10 additions and 13 deletions
|
@ -16,5 +16,3 @@ DB_PASSWORD=postgres
|
||||||
DB_HOSTNAME=immich_postgres
|
DB_HOSTNAME=immich_postgres
|
||||||
DB_USERNAME=postgres
|
DB_USERNAME=postgres
|
||||||
DB_DATABASE_NAME=immich
|
DB_DATABASE_NAME=immich
|
||||||
|
|
||||||
REDIS_HOSTNAME=immich_redis
|
|
||||||
|
|
|
@ -79,15 +79,15 @@ When `DB_URL` is defined, the `DB_HOSTNAME`, `DB_PORT`, `DB_USERNAME`, `DB_PASSW
|
||||||
|
|
||||||
## Redis
|
## Redis
|
||||||
|
|
||||||
| Variable | Description | Default | Services |
|
| Variable | Description | Default | Services |
|
||||||
| :--------------- | :------------- | :------------: | :-------------------- |
|
| :--------------- | :------------- | :-----: | :-------------------- |
|
||||||
| `REDIS_URL` | Redis URL | | server, microservices |
|
| `REDIS_URL` | Redis URL | | server, microservices |
|
||||||
| `REDIS_HOSTNAME` | Redis Host | `immich_redis` | server, microservices |
|
| `REDIS_HOSTNAME` | Redis Host | `redis` | server, microservices |
|
||||||
| `REDIS_PORT` | Redis Port | `6379` | server, microservices |
|
| `REDIS_PORT` | Redis Port | `6379` | server, microservices |
|
||||||
| `REDIS_DBINDEX` | Redis DB Index | `0` | server, microservices |
|
| `REDIS_DBINDEX` | Redis DB Index | `0` | server, microservices |
|
||||||
| `REDIS_USERNAME` | Redis Username | | server, microservices |
|
| `REDIS_USERNAME` | Redis Username | | server, microservices |
|
||||||
| `REDIS_PASSWORD` | Redis Password | | server, microservices |
|
| `REDIS_PASSWORD` | Redis Password | | server, microservices |
|
||||||
| `REDIS_SOCKET` | Redis Socket | | server, microservices |
|
| `REDIS_SOCKET` | Redis Socket | | server, microservices |
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ x-server-build: &server-common
|
||||||
- DB_USERNAME=postgres
|
- DB_USERNAME=postgres
|
||||||
- DB_PASSWORD=postgres
|
- DB_PASSWORD=postgres
|
||||||
- DB_DATABASE_NAME=immich
|
- DB_DATABASE_NAME=immich
|
||||||
- REDIS_HOSTNAME=redis
|
|
||||||
- IMMICH_MACHINE_LEARNING_ENABLED=false
|
- IMMICH_MACHINE_LEARNING_ENABLED=false
|
||||||
- IMMICH_METRICS=true
|
- IMMICH_METRICS=true
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -52,7 +52,7 @@ function parseRedisConfig(): RedisOptions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
host: process.env.REDIS_HOSTNAME || 'immich_redis',
|
host: process.env.REDIS_HOSTNAME || 'redis',
|
||||||
port: Number.parseInt(process.env.REDIS_PORT || '6379'),
|
port: Number.parseInt(process.env.REDIS_PORT || '6379'),
|
||||||
db: Number.parseInt(process.env.REDIS_DBINDEX || '0'),
|
db: Number.parseInt(process.env.REDIS_DBINDEX || '0'),
|
||||||
username: process.env.REDIS_USERNAME || undefined,
|
username: process.env.REDIS_USERNAME || undefined,
|
||||||
|
|
Loading…
Reference in a new issue