欢迎光临散文网 会员登陆 & 注册

immich docker compose

2023-06-05 15:21 作者:锤子V君  | 我要投稿

---

version: "2.1"

services:

  immich:

    image: ghcr.io/imagegenius/immich:latest

    container_name: immich

    environment:

      - PUID=1026

      - PGID=101

      - TZ=Asia/Shanghai

      - DB_HOSTNAME=192.168.1.x

      - DB_USERNAME=postgres

      - DB_PASSWORD=postgres

      - DB_DATABASE_NAME=immich

      - REDIS_HOSTNAME=192.168.1.x

      - DISABLE_MACHINE_LEANRNING=false

      - DISABLE_TYPESENSE=false

      - DB_PORT=5432

      - REDIS_PORT=6379

      - REDIS_PASSWORD=

      - CUDA_ACCELERATION=false

    volumes:

      - /volume1/docker/immich/config:/config

      - /volume1/docker/immich/photos:/photos

      - /volume1/docker/immich/machine:/config/machine-learning

    ports:

      - 8080:8080

    restart: unless-stopped

  redis:

    image: redis

    ports:

      - 6379:6379

    container_name: redis

  postgres14:

    image: postgres:14

    ports:

      - 5432:5432

    container_name: postgres14

    environment:

      POSTGRES_USER: postgres

      POSTGRES_PASSWORD: postgres

      POSTGRES_DB: immich

    volumes:

      - /volume1/docker/immich/db:/var/lib/postgresql/data


immich docker compose的评论 (共 条)

分享到微博请遵守国家法律