-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB_HOSTNAME change #267
Comments
you can set the ip to the hostname of the container, the hostname should be the services:
immich:
image: ghcr.io/imagegenius/igpipepr-immich:1.91.4-PR-266
container_name: immich
environment:
PUID: '1000'
PGID: '1000'
TZ: 'Australia/Melbourne'
DB_HOSTNAME: 'postgres14' # <= container name
DB_USERNAME: 'postgres'
DB_PASSWORD: 'postgres'
DB_DATABASE_NAME: 'immich'
REDIS_HOSTNAME: 'redis'
DB_PORT: '5432'
REDIS_PORT: '6379'
REDIS_PASSWORD: ''
MACHINE_LEARNING_WORKERS: '1'
MACHINE_LEARNING_WORKER_TIMEOUT: '120'
ports:
- '8080:8080'
restart: unless-stopped
depends_on:
- postgres14
- redis
redis:
image: redis
ports:
- '6379:6379'
container_name: redis
restart: unless-stopped
postgres14:
image: tensorchord/pgvecto-rs:pg14-v0.1.11
ports:
- '5432:5432'
container_name: postgres14 # <= set here
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
POSTGRES_DB: 'immich'
restart: unless-stopped |
There is another issue, after Docker runs normally for a long time, Postgres will report an error and CPU usage will be high |
I installed it through Docker Compose, but when I restart Docker, the IP addresses obtained by immich, Redis, and postgres sometimes change, causing it to not start. How to modify Docker Compose to automatically adapt to this IP change for immich
The text was updated successfully, but these errors were encountered: