# # 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 # # The compose file on main may not be compatible with the latest release. # name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v1.138.0 volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env # ports: # - '2283:2283' depends_on: - redis - database restart: always labels: - "traefik.enable=true" - "traefik.http.routers.immich.entrypoints=http" - "traefik.http.routers.immich.rule=Host(`photos.domain.tld`)" - "traefik.http.middlewares.immich-https-redirect.redirectscheme.scheme=https" - "traefik.http.routers.immich.middlewares=immich-https-redirect" - "traefik.http.routers.immich-secure.entrypoints=https" - "traefik.http.routers.immich-secure.rule=Host(`photos.domain.tld`)" - "traefik.http.routers.immich-secure.tls=true" - "traefik.http.routers.immich-secure.tls.certresolver=cloudflare" - "traefik.http.routers.immich-secure.service=immich" - "traefik.http.services.immich.loadbalancer.server.port=2283" - "traefik.docker.network=proxy" healthcheck: disable: false networks: - immich - proxy immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:v1.138.0 volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false networks: - immich redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:facc1d2c3462975c34e10fccb167bfa92b0e0dbd992fc282c29a61c3243afb11 healthcheck: test: redis-cli ping || exit 1 restart: always networks: - immich database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:32324a2f41df5de9efe1af166b7008c3f55646f8d0e00d9550c16c9822366b4a environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - /srv/immich/postgres:/var/lib/postgresql/data restart: always networks: - immich volumes: model-cache: photos: driver: local driver_opts: type: nfs o: addr=nfsv01.domain.tld,rw,vers=4.2 device: :/photos networks: proxy: name: proxy external: true immich: