Fix Traefik integration and network configuration
- Add default network to immich-server for database/redis communication - Fix Traefik loadbalancer port from 3001 to 2283 (correct Immich port) - Enable HDD storage type for PostgreSQL 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,7 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
networks:
|
networks:
|
||||||
|
- default
|
||||||
- traefik
|
- traefik
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
@@ -38,7 +39,7 @@ services:
|
|||||||
- "traefik.http.routers.immich.entrypoints=websecure"
|
- "traefik.http.routers.immich.entrypoints=websecure"
|
||||||
- "traefik.http.routers.immich.tls=true"
|
- "traefik.http.routers.immich.tls=true"
|
||||||
- "traefik.http.routers.immich.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.immich.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.immich.loadbalancer.server.port=3001"
|
- "traefik.http.services.immich.loadbalancer.server.port=2283"
|
||||||
- "traefik.docker.network=traefik"
|
- "traefik.docker.network=traefik"
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
@@ -71,9 +72,9 @@ services:
|
|||||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
POSTGRES_USER: ${DB_USERNAME}
|
POSTGRES_USER: ${DB_USERNAME}
|
||||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
POSTGRES_INITDB_ARGS: "--data-checksums"
|
||||||
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
|
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
|
||||||
# DB_STORAGE_TYPE: 'HDD'
|
DB_STORAGE_TYPE: "HDD"
|
||||||
volumes:
|
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
|
# 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
|
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
||||||
|
|||||||
Reference in New Issue
Block a user