Advertisement
gadgeteerza

Immich Portainer Stack File

Dec 29th, 2023
1,630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.24 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. # Note the variables are left as-is, you need to enter that info in the stcks.env file
  9. # which is then pulled in when the stack is created
  10.  
  11. services:
  12.   immich-server:
  13.     container_name: immich_server
  14.     hostname: immich_server
  15.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  16.     command: [ "start.sh", "immich" ]
  17.     networks:
  18.      - mysql-net
  19.     volumes:
  20.      - ${UPLOAD_LOCATION}:/usr/src/app/upload
  21.       - /etc/localtime:/etc/localtime:ro
  22.       - /var/lib/docker/volumes/piwigogallery/_data/upload:/mnt/media/piwigo:ro
  23.     env_file:
  24.      - stack.env
  25.     ports:
  26.      - 2283:3001
  27.     depends_on:
  28.      - redis
  29.       - database
  30.     restart: always
  31.     labels:
  32.       com.centurylinklabs.watchtower.enable: "true"
  33.  
  34.   immich-microservices:
  35.     container_name: immich_microservices
  36.     hostname: immich_microservices
  37.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  38.     # extends:
  39.     #   file: hwaccel.yml
  40.     #   service: hwaccel
  41.     command: [ "start.sh", "microservices" ]
  42.     networks:
  43.      - mysql-net
  44.     volumes:
  45.      - ${UPLOAD_LOCATION}:/usr/src/app/upload
  46.       - /etc/localtime:/etc/localtime:ro
  47.       - /var/lib/docker/volumes/piwigogallery/_data/upload:/mnt/media/piwigo:ro
  48.     env_file:
  49.      - stack.env
  50.     depends_on:
  51.      - redis
  52.       - database
  53.     restart: always
  54.     labels:
  55.      # Enable Watchtower to notify about updated image
  56.       com.centurylinklabs.watchtower.enable: "true"
  57.  
  58.   immich-machine-learning:
  59.     container_name: immich_machine_learning
  60.     hostname: immich_machine_learning
  61.     image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  62.     networks:
  63.      - mysql-net
  64.     volumes:
  65.      - model-cache:/cache
  66.     env_file:
  67.      - stack.env
  68.     restart: always
  69.     labels:
  70.      # Enables Watchtower to notify about updated image
  71.       com.centurylinklabs.watchtower.enable: "true"
  72.  
  73.   redis:
  74.     container_name: immich_redis
  75.     hostname: immich_redis
  76.     image: redis:6.2-alpine@sha256:b6124ab2e45cc332e16398022a411d7e37181f21ff7874835e0180f56a09e82a
  77.     networks:
  78.      - mysql-net
  79.     restart: always
  80.     labels:
  81.      # Enables Watchtower to notify about updated image
  82.       com.centurylinklabs.watchtower.enable: "true"
  83.  
  84.   database:
  85.     container_name: immich_postgres
  86.     hostname: immich_postgres
  87.     image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee
  88.     env_file:
  89.      - stack.env
  90.     environment:
  91.       POSTGRES_PASSWORD: ${DB_PASSWORD}
  92.       POSTGRES_USER: ${DB_USERNAME}
  93.       POSTGRES_DB: ${DB_DATABASE_NAME}
  94.     networks:
  95.      - mysql-net
  96.     volumes:
  97.      - pgdata:/var/lib/postgresql/data
  98.     restart: always
  99.     labels:
  100.      # Enables Watchtower to notify about updated image
  101.       com.centurylinklabs.watchtower.enable: "true"
  102.  
  103. volumes:
  104.   pgdata:
  105.   model-cache:
  106. networks:
  107.   mysql-net:
  108.    # Joins existing network of this name
  109.     external: true
  110.     # Specify name so that it does not append stack name
  111.     name: mysql-net
  112.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement