version: "3.9"
services:
immich-server:
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
container_name: immich_server
restart: unless-stopped
depends_on:
- redis
- database
ports:
- "2283:2283"
env_file:
- Immich.env
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- ${STORAGE_PATH}/Media/Photos/Family:/photos:ro
- ${STORAGE_PATH}/Storage/Takeout:/takeout:ro
- ${STORAGE_PATH}/Camera:/camera:ro
healthcheck:
disable: false
immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
container_name: immich_machine_learning
restart: unless-stopped
mem_limit: 4g
cpus: 2
volumes:
- model-cache:/cache
env_file:
- Immich.env
healthcheck:
disable: false
redis:
image: docker.io/redis:6.2-alpine@sha256:e3b17ba9479deec4b7d1eeec1548a253acc5374d68d3b27937fcfe4df8d18c7e
container_name: immich_redis
restart: unless-stopped
healthcheck:
test: redis-cli ping || exit 1
database:
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0
container_name: immich_postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
DB_STORAGE_TYPE: "HDD"
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
volumes:
model-cache:
version: "3.9"
services:
immich-server:
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
container_name: immich_server
restart: unless-stopped
depends_on:
- redis
- database
ports:
- "2283:2283"
env_file:
- Immich.env
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- ${STORAGE_PATH}/Media/Photos/Family:/photos:ro
- ${STORAGE_PATH}/Storage/Takeout:/takeout:ro
- ${STORAGE_PATH}/Camera:/camera:ro
healthcheck:
disable: false
immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
container_name: immich_machine_learning
restart: unless-stopped
mem_limit: 4g
cpus: 2
volumes:
- model-cache:/cache
env_file:
- Immich.env
healthcheck:
disable: false
redis:
image: docker.io/redis:6.2-alpine@sha256:e3b17ba9479deec4b7d1eeec1548a253acc5374d68d3b27937fcfe4df8d18c7e
container_name: immich_redis
restart: unless-stopped
healthcheck:
test: redis-cli ping || exit 1
database:
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0
container_name: immich_postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
DB_STORAGE_TYPE: "HDD"
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
volumes:
model-cache: