Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: immich
- services:
- immich-server:
- container_name: immich_server
- image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
- mem_limit: 1000m
- cpus: 1
- cpu_shares: 1024
- # security_opt:
- # - no-new-privileges=true
- devices:
- - /dev/dri:/dev/dri
- volumes:
- # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- - ${UPLOAD_LOCATION}:/data
- - /etc/localtime:/etc/localtime:ro
- env_file:
- - .env
- ports:
- - 2283:2283
- depends_on:
- - redis
- - database
- restart: unless-stopped
- healthcheck:
- disable: false
- immich-machine-learning:
- container_name: immich_machine_learning
- image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-openvino
- mem_limit: 4000m #in order to make sure machinelearning works properly
- cpus: 12 #in order to make sure transcoding works properly
- cpu_shares: 1024
- # security_opt:
- # - no-new-privileges=true
- device_cgroup_rules:
- - c 189:* rmw
- devices:
- - /dev/dri:/dev/dri
- volumes:
- - /dev/bus/usb:/dev/bus/usb
- - model-cache:/cache
- env_file:
- - .env
- restart: unless-stopped
- healthcheck:
- disable: false
- redis:
- container_name: immich_redis
- image: docker.io/valkey/valkey:9@sha256:4963247afc4cd33c7d3b2d2816b9f7f8eeebab148d29056c2ca4d7cbc966f2d9
- mem_limit: 1000m
- cpus: 1
- cpu_shares: 1024
- security_opt:
- - no-new-privileges=true
- healthcheck:
- test: redis-cli ping || exit 1
- restart: unless-stopped
- database:
- container_name: immich_postgres
- image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
- mem_limit: 1000m
- cpus: 1
- cpu_shares: 1024
- security_opt:
- - no-new-privileges=true
- environment:
- POSTGRES_PASSWORD: ${DB_PASSWORD}
- POSTGRES_USER: ${DB_USERNAME}
- POSTGRES_DB: ${DB_DATABASE_NAME}
- POSTGRES_INITDB_ARGS: --data-checksums
- volumes:
- # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
- env_file:
- - .env
- shm_size: 128mb
- restart: unless-stopped
- healthcheck:
- disable: false
- volumes:
- model-cache: null
- networks: {}
Advertisement
Add Comment
Please, Sign In to add comment