Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.8"
- #
- # WARNING: Make sure to use the docker-compose.yml of the current release:
- #
- # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
- #
- # Note the variables are left as-is, you need to enter that info in the stcks.env file
- # which is then pulled in when the stack is created
- services:
- immich-server:
- container_name: immich_server
- hostname: immich_server
- image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
- command: [ "start.sh", "immich" ]
- networks:
- - mysql-net
- volumes:
- - ${UPLOAD_LOCATION}:/usr/src/app/upload
- - /etc/localtime:/etc/localtime:ro
- - /var/lib/docker/volumes/piwigogallery/_data/upload:/mnt/media/piwigo:ro
- env_file:
- - stack.env
- ports:
- - 2283:3001
- depends_on:
- - redis
- - database
- restart: always
- labels:
- com.centurylinklabs.watchtower.enable: "true"
- immich-microservices:
- container_name: immich_microservices
- hostname: immich_microservices
- image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
- # extends:
- # file: hwaccel.yml
- # service: hwaccel
- command: [ "start.sh", "microservices" ]
- networks:
- - mysql-net
- volumes:
- - ${UPLOAD_LOCATION}:/usr/src/app/upload
- - /etc/localtime:/etc/localtime:ro
- - /var/lib/docker/volumes/piwigogallery/_data/upload:/mnt/media/piwigo:ro
- env_file:
- - stack.env
- depends_on:
- - redis
- - database
- restart: always
- labels:
- # Enable Watchtower to notify about updated image
- com.centurylinklabs.watchtower.enable: "true"
- immich-machine-learning:
- container_name: immich_machine_learning
- hostname: immich_machine_learning
- image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
- networks:
- - mysql-net
- volumes:
- - model-cache:/cache
- env_file:
- - stack.env
- restart: always
- labels:
- # Enables Watchtower to notify about updated image
- com.centurylinklabs.watchtower.enable: "true"
- redis:
- container_name: immich_redis
- hostname: immich_redis
- image: redis:6.2-alpine@sha256:b6124ab2e45cc332e16398022a411d7e37181f21ff7874835e0180f56a09e82a
- networks:
- - mysql-net
- restart: always
- labels:
- # Enables Watchtower to notify about updated image
- com.centurylinklabs.watchtower.enable: "true"
- database:
- container_name: immich_postgres
- hostname: immich_postgres
- image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee
- env_file:
- - stack.env
- environment:
- POSTGRES_PASSWORD: ${DB_PASSWORD}
- POSTGRES_USER: ${DB_USERNAME}
- POSTGRES_DB: ${DB_DATABASE_NAME}
- networks:
- - mysql-net
- volumes:
- - pgdata:/var/lib/postgresql/data
- restart: always
- labels:
- # Enables Watchtower to notify about updated image
- com.centurylinklabs.watchtower.enable: "true"
- volumes:
- pgdata:
- model-cache:
- networks:
- mysql-net:
- # Joins existing network of this name
- external: true
- # Specify name so that it does not append stack name
- name: mysql-net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement