diff --git a/immich/autostart b/immich/autostart new file mode 100644 index 0000000..f32a580 --- /dev/null +++ b/immich/autostart @@ -0,0 +1 @@ +true \ No newline at end of file diff --git a/immich/docker-compose.override.yml b/immich/docker-compose.override.yml new file mode 100644 index 0000000..f6fa81e --- /dev/null +++ b/immich/docker-compose.override.yml @@ -0,0 +1,25 @@ +services: + immich-server: + labels: + net.unraid.docker.managed: 'composeman' + net.unraid.docker.icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/immich.png' + net.unraid.docker.webui: '' + net.unraid.docker.shell: '' + immich-machine-learning: + labels: + net.unraid.docker.managed: 'composeman' + net.unraid.docker.icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/immich.png' + net.unraid.docker.webui: '' + net.unraid.docker.shell: '' + redis: + labels: + net.unraid.docker.managed: 'composeman' + net.unraid.docker.icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/redis.png' + net.unraid.docker.webui: '' + net.unraid.docker.shell: '' + database: + labels: + net.unraid.docker.managed: 'composeman' + net.unraid.docker.icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/postgresql.png' + net.unraid.docker.webui: '' + net.unraid.docker.shell: '' diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml new file mode 100644 index 0000000..6816b39 --- /dev/null +++ b/immich/docker-compose.yml @@ -0,0 +1,132 @@ +# +# WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose +# +# 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:${IMMICH_VERSION:-release} + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: + - gpu + 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 + ports: + - "2283:2283" + env_file: + - .env + depends_on: + - redis + - database + restart: always + healthcheck: + disable: false + networks: + - default + - pangolin + labels: + - net.unraid.docker.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/immich.png + - net.unraid.docker.webui=https://${FULL_DOMAIN} + - folder.view2=Services + + - pangolin.public-resources.immich-server.name=${RESOURCE_NAME} + - pangolin.public-resources.immich-server.full-domain=${FULL_DOMAIN} + - pangolin.public-resources.immich-server.protocol=http + + - pangolin.public-resources.immich-server.auth.sso-enabled=true + - pangolin.public-resources.immich-server.auth.sso-roles[0]=Member + + - pangolin.public-resources.immich-server.targets[0].method=http + + - pangolin.public-resources.immich-server.targets[0].healthcheck.enabled=true + - pangolin.public-resources.immich-server.targets[0].healthcheck.hostname=immich-server + - pangolin.public-resources.immich-server.targets[0].healthcheck.port=2283 + - pangolin.public-resources.immich-server.targets[0].healthcheck.path=/ + - pangolin.public-resources.immich-server.targets[0].healthcheck.method=GET + - pangolin.public-resources.immich-server.targets[0].healthcheck.status=200 + - pangolin.public-resources.immich-server.targets[0].healthcheck.interval=30 + - pangolin.public-resources.immich-server.targets[0].healthcheck.timeout=5 + + - pangolin.public-resources.immich-server.rules[0].action=allow + - pangolin.public-resources.immich-server.rules[0].match=path + - pangolin.public-resources.immich-server.rules[0].value=/api/* + - pangolin.public-resources.immich-server.rules[1].action=allow + - pangolin.public-resources.immich-server.rules[1].match=path + - pangolin.public-resources.immich-server.rules[1].value=/.well-known/immich + + immich-machine-learning: + container_name: immich_machine_learning + # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. + # Example tag: ${IMMICH_VERSION:-release}-cuda + image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: + - gpu + volumes: + - model-cache:/cache + env_file: + - .env + restart: always + healthcheck: + disable: false + labels: + - net.unraid.docker.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/immich.png + - folder.view2=Services + + redis: + container_name: immich_redis + image: docker.io/valkey/valkey:9@sha256:546304417feac0874c3dd576e0952c6bb8f06bb4093ea0c9ca303c73cf458f63 + healthcheck: + test: redis-cli ping || exit 1 + restart: always + labels: + - net.unraid.docker.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/redis.png + - folder.view2=Databases + + database: + container_name: immich_postgres + image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_DB: ${DB_DATABASE_NAME} + POSTGRES_INITDB_ARGS: '--data-checksums' + # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs + # DB_STORAGE_TYPE: 'HDD' + 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 + shm_size: 128mb + restart: always + healthcheck: + disable: false + labels: + - net.unraid.docker.icon=https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/postgresql.png + - folder.view2=Databases + +volumes: + model-cache: + +networks: + pangolin: + name: pangolin_net + external: true diff --git a/immich/name b/immich/name new file mode 100644 index 0000000..9713afd --- /dev/null +++ b/immich/name @@ -0,0 +1 @@ +immich \ No newline at end of file