services: immich: image: ghcr.io/imagegenius/immich:alpine container_name: immich environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - DB_HOSTNAME='postgres14' - DB_USERNAME=postgres - DB_PASSWORD=postgres - DB_DATABASE_NAME=immich - REDIS_HOSTNAME='redis' volumes: - ./config:/config - ./photos:/photos ports: - 8080:8080 networks: - web - internal_network restart: unless-stopped redis: image: redis container_name: redis networks: - internal_network postgres14: image: tensorchord/pgvecto-rs:pg14-v0.2.0 container_name: postgres14 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: immich volumes: - ./db:/var/lib/postgresql/data networks: - internal_network networks: web: external: true internal: external: false