From 0e64750b50f8eb221b49893bdf00eba64c0fd90d Mon Sep 17 00:00:00 2001 From: Tord-Vincent Heggland Date: Wed, 17 Jun 2026 18:10:14 +0000 Subject: [PATCH] first commit --- .gitignore | 1 + docker-compose.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++++ example.env | 14 ++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yaml create mode 100644 example.env diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..47b859a --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,54 @@ +name: immich + +services: + immich-server: + container_name: immich_server + image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} + restart: unless-stopped + ports: + - "2283:2283" + volumes: + - /srv/immich/library:/data + - /etc/localtime:/etc/localtime:ro + env_file: + - .env + depends_on: + - redis + - database + healthcheck: + disable: false + + immich-machine-learning: + container_name: immich_machine_learning + image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} + restart: unless-stopped + volumes: + - /srv/immich/models:/cache + env_file: + - .env + healthcheck: + disable: false + + redis: + container_name: immich_redis + image: docker.io/valkey/valkey:9 + restart: unless-stopped + healthcheck: + test: redis-cli ping || exit 1 + + database: + container_name: immich_postgres + image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 + restart: unless-stopped + environment: + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_DB: ${DB_DATABASE_NAME} + DB_STORAGE_TYPE: ${DB_STORAGE_TYPE:-SSD} + volumes: + - /srv/immich/postgres:/var/lib/postgresql/data + healthcheck: + test: pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1 + interval: 30s + timeout: 5s + retries: 5 diff --git a/example.env b/example.env new file mode 100644 index 0000000..8ab12f9 --- /dev/null +++ b/example.env @@ -0,0 +1,14 @@ +TZ=Europe/Oslo + +IMMICH_VERSION=release + +DB_USERNAME=immich +DB_PASSWORD=example-secret-long-password-change-me +DB_DATABASE_NAME=immich +DB_HOSTNAME=database +DB_PORT=5432 +DB_STORAGE_TYPE=SSD + +REDIS_HOSTNAME=redis +REDIS_PORT=6379 +