services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release command: [ "start.sh", "immich" ] restart: always depends_on: database: condition: service_started redis: condition: service_started environment: DB_HOST: database DB_PORT: 5432 DB_USERNAME: postgres DB_PASSWORD: postgres DB_DATABASE_NAME: immich REDIS_HOSTNAME: immich_redis UPLOAD_LOCATION: /usr/src/app/upload IMMICH_MEDIA_LOCATION: /usr/src/app/upload IMMICH_MACHINE_LEARNING_URL: http://immich_machine_learning:3003 TZ: Australia/Sydney volumes: - type: bind source: D:/immich/uploads target: /usr/src/app/upload - type: bind source: D:/Pictures target: /mnt/media/my-media read_only: true ports: - "2283:2283" networks: - default immich-web: container_name: immich_web image: ghcr.io/immich-app/immich-web:release restart: always depends_on: - immich-server environment: IMMICH_SERVER_URL: http://immich_server:2283 TZ: Australia/Sydney ports: - "2283:2283" networks: - default immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:release command: [ "start.sh", "ml" ] restart: always healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3003"] interval: 30s timeout: 10s retries: 5 networks: - default database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 restart: always environment: POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres POSTGRES_DB: immich volumes: - immich_pgdata:/var/lib/postgresql/data networks: - default redis: container_name: immich_redis image: redis:6.2-alpine restart: always networks: - default volumes: immich_pgdata: networks: default: driver: bridge