gimmich

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

docker-compose.yml (1483B)


      1 # Docker-compose file for immich all-in-one docker image.
      2 # Used this to start up immich, then run pg_dump to extract the database schema.
      3 ---
      4 services:
      5   immich:
      6     image: ghcr.io/imagegenius/immich:latest
      7     container_name: immich
      8     environment:
      9       - PUID=1000
     10       - PGID=1000
     11       - TZ=Etc/UTC
     12       - DB_HOSTNAME=postgres14
     13       - DB_USERNAME=postgres
     14       - DB_PASSWORD=postgres
     15       - DB_DATABASE_NAME=immich
     16       - REDIS_HOSTNAME=valkey
     17       - DB_PORT=5432 #optional
     18       - REDIS_PORT=6379 #optional
     19       - REDIS_PASSWORD= #optional
     20       - SERVER_HOST=0.0.0.0 #optional
     21       - SERVER_PORT=8080 #optional
     22       - MACHINE_LEARNING_HOST=0.0.0.0 #optional
     23       - MACHINE_LEARNING_PORT=3003 #optional
     24       - MACHINE_LEARNING_WORKERS=1 #optional
     25       - MACHINE_LEARNING_WORKER_TIMEOUT=120 #optional
     26     volumes:
     27       - ./data/config:/config
     28       - ./data/photos:/photos
     29       - ./data/libraries:/libraries #optional
     30     ports:
     31       - 8080:8080
     32     restart: unless-stopped
     33 
     34   valkey:
     35     image: valkey/valkey:8-bookworm
     36     container_name: valkey
     37     ports:
     38       - 6379:6379
     39 
     40   postgres14:
     41     image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
     42     container_name: postgres14
     43     environment:
     44       POSTGRES_USER: postgres
     45       POSTGRES_PASSWORD: postgres
     46       POSTGRES_DB: immich
     47       # Uncomment if not on SSDs:
     48       # DB_STORAGE_TYPE: 'HDD'
     49     volumes:
     50       - ./data/postgres:/var/lib/postgresql/data
     51     ports:
     52       - 5432:5432