immich/docker-compose.yml aktualisiert

This commit is contained in:
2025-11-29 12:56:38 +00:00
parent 29c4f1efad
commit 517e137f25

View File

@@ -6,8 +6,6 @@ services:
volumes:
- ${UPLOAD_LOCATION:-./immich_upload}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
environment:
NODE_ENV: ${NODE_ENV:-production}
DB_HOST: ${DB_HOST:-immich-database}
@@ -18,22 +16,12 @@ services:
REDIS_HOSTNAME: ${REDIS_HOSTNAME:-immich-redis}
REDIS_PORT: ${REDIS_PORT:-6379}
JWT_SECRET: ${JWT_SECRET:-changemeplease}
ports:
- "${IMMICH_PORT:-2283}:2283"
expose:
- 2283
depends_on:
- immich-redis
- immich-database
restart: unless-stopped
networks:
- proxy
- immich-internal
#labels:
# - traefik.enable=true
# - traefik.http.routers.immich.rule=Host(`immich.example.com`)
# - traefik.http.services.immich.loadbalancer.server.port=2283
# - traefik.docker.network=proxy
immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
@@ -44,9 +32,6 @@ services:
environment:
NODE_ENV: ${NODE_ENV:-production}
restart: unless-stopped
networks:
- proxy
- immich-internal
immich-redis:
image: docker.io/valkey/valkey:${REDIS_VERSION:-8-bookworm}
@@ -54,14 +39,10 @@ services:
restart: unless-stopped
healthcheck:
test: redis-cli ping || exit 1
networks:
- immich-internal
immich-database:
image: ghcr.io/immich-app/postgres:${POSTGRES_VERSION:-14-vectorchord0.3.0-pgvectors0.2.0}
container_name: immich-database
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:-immich}
POSTGRES_USER: ${DB_USERNAME:-immich}
@@ -71,14 +52,6 @@ services:
volumes:
- ${DB_DATABASE_LOCATION:-./immich_db}:/var/lib/postgresql/data
restart: unless-stopped
networks:
- immich-internal
volumes:
model-cache:
networks:
proxy:
external: true
immich-internal:
internal: true