Advertisement
Guest User

docker-compose.yml

a guest
Dec 18th, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.01 KB | Source Code | 0 0
  1. version: "3.8"
  2.  
  3. #
  4. # WARNING: Make sure to use the docker-compose.yml of the current release:
  5. #
  6. # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
  7. #
  8. # The compose file on main may not be compatible with the latest release.
  9. #
  10.  
  11. name: immich
  12.  
  13. services:
  14.   immich-server:
  15.     container_name: immich_server
  16.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  17.     command: [ "start.sh", "immich" ]
  18.     volumes:
  19.      - ${UPLOAD_LOCATION}:/usr/src/app/upload
  20.       - /etc/localtime:/etc/localtime:ro
  21.     env_file:
  22.      - stack.env
  23.     ports:
  24.      - 2283:3001
  25.     depends_on:
  26.      - redis
  27.       - database
  28.     restart: always
  29.  
  30.   immich-microservices:
  31.     container_name: immich_microservices
  32.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  33.     # extends:
  34.     #   file: hwaccel.yml
  35.     #   service: hwaccel
  36.     command: [ "start.sh", "microservices" ]
  37.     volumes:
  38.      - ${UPLOAD_LOCATION}:/usr/src/app/upload
  39.       - /etc/localtime:/etc/localtime:ro
  40.     env_file:
  41.      - stack.env
  42.     depends_on:
  43.      - redis
  44.       - database
  45.     restart: always
  46.  
  47.   immich-machine-learning:
  48.     container_name: immich_machine_learning
  49.     image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  50.     volumes:
  51.      - /volume1/docker/immich-app/model-cache:/cache
  52.     env_file:
  53.      - stack.env
  54.     restart: always
  55.  
  56.   redis:
  57.     container_name: immich_redis
  58.     image: redis:6.2-alpine@sha256:b6124ab2e45cc332e16398022a411d7e37181f21ff7874835e0180f56a09e82a
  59.     restart: always
  60.  
  61.   database:
  62.     container_name: immich_postgres
  63.     image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee
  64.     env_file:
  65.      - stack.env
  66.     environment:
  67.       POSTGRES_PASSWORD: ${DB_PASSWORD}
  68.       POSTGRES_USER: ${DB_USERNAME}
  69.       POSTGRES_DB: ${DB_DATABASE_NAME}
  70.     volumes:
  71.      - /volume1/docker/immich-app/pgdata:/var/lib/postgresql/data
  72.     restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement