High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
Update installation method and documentation (#424)
Alex2079583866d8
diff --git a/README.md b/README.mdindex 4dc680685f..a912ddbf77 100644--- a/README.md+++ b/README.md@@ -61,11 +61,11 @@ This project is under heavy development, there will be continuous functions, fea| | Mobile | Web || - | - | - || Upload and view videos and photos | Yes | Yes-| Auto backup when app is opened | Yes | N/A+| Auto backup when the app is opened | Yes | N/A| Selective album(s) for backup | Yes | N/A| Download photos and videos to local device | Yes | Yes| Multi-user support | Yes | Yes-| Album | No | Yes+| Album | Yes | Yes| Shared Albums | Yes | Yes| Quick navigation with draggable scrollbar | Yes | Yes| Support RAW (HEIC, HEIF, DNG, Apple ProRaw) | Yes | Yes@@ -82,9 +82,9 @@ This project is under heavy development, there will be continuous functions, fea**Core**: At least 2 cores, preffered 4 cores.-# Getting Started+# Technology Stack-You can use docker compose for development and testing out the application, there are several services that compose Immich:+There are several services that compose Immich:1. **NestJs** - Backend of the application2. **SvelteKit** - Web frontend of the application@@ -93,19 +93,51 @@ You can use docker compose for development and testing out the application, ther5. **Nginx** - Load balancing and optimized file uploading.6. **TensorFlow** - Object Detection (COCO SSD) and Image Classification (ImageNet).-## Step 1: Populate .env file+# Installing-Navigate to `docker` directory and run+## One-step installation - for evaluating only+*Applicable system: Ubuntu, Debian, MacOS*++*This installation method is for evaluating Immich before futher customization to meet the users' needs.*++In the shell, from the directory of your choice, run the following command:++```bash+curl -o- https://raw.githubusercontent.com/immich-app/immich/main/install.sh | bash```-cp .env.example .env++This script will download the `docker-compose.yml` file and the `.env` file, then populate the necessary information, and finally run the `docker-compose up` or `docker compose up` (based on your docker's version) command.++The web application will be available at `http://<machine-ip-address>:2283`, and the server URL for the mobile app will be `http://<machine-ip-address>:2283/api`.++The directory which is used to store the backup file is `./immich-app/immich-data`.+++## Customize installation - for production usage++### Step 1 - Download necessary files++Create a directory called `immich-app` and cd into it. Then++Get `docker-compose.yml`++```bash+wget https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml```-Then populate the value in there.+Get `.env`-Notice that if set `ENABLE_MAPBOX` to `true`, you will have to provide `MAPBOX_KEY` for the server to run.+```bash+wget -O .env wget https://raw.githubusercontent.com/immich-app/immich/main/docker/.env.example+```++### Step 2 - Populate .env file with customed information-Pay attention to the key `UPLOAD_LOCATION`, this directory must exist and is owned by the user that run the `docker-compose` command below.+* Populate customised database information if necessary.+* Populate `UPLOAD_LOCATION` as prefered location for storing backup assets.+* Populate a secret value for `JWT_SECRET`+* [Optional] Popluate Mapbox value.**Example**@@ -133,36 +165,15 @@ JWT_SECRET=randomstringthatissolongandpowerfulthatnoonecanguess# ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEYENABLE_MAPBOX=falseMAPBOX_KEY=--###################################################################################-# WEB-###################################################################################-# This is the URL of your vm/server where you host Immich, so that the web frontend-# know where can it make the request to.-# For example: If your server IP address is 10.1.11.50, the environment variable will-# be VITE_SERVER_ENDPOINT=http://10.1.11.50:2283/api-VITE_SERVER_ENDPOINT=http://192.168.1.216:2283/api-```--## Step 2: Start the server--To **start**, run--```bash-docker-compose -f ./docker/docker-compose.yml up```-To *update* docker-compose with newest image (if you have started the docker-compose previously)+### Step 3 - Start the containers-```bash-docker-compose -f ./docker/docker-compose.yml pull && docker-compose -f ./docker/docker-compose.yml up-```--The server will be running at `http://your-ip:2283/api`+Run `docker-compose up` or `docker-compose up` (based on your docker's version)-## Step 3: Register User+### Step 4 - Register admin user-Access the web interface at `http://your-ip:2283` to register an admin account.+Navigate to the web at `http://<machine-ip-address>:2283` and follow the prompts to register admin user.<p align="left"><img src="design/admin-registration-form.png" width="300" title="Admin Registration">@@ -174,14 +185,16 @@ Additional accounts on the server can be created by the admin account.<img src="design/admin-interface.png" width="500" title="Admin User Management"><p/>-## Step 4: Run mobile app+### Step 5 - Access the mobile app-Login the mobile app with your server address+Login the mobile app with the server endpoint URL at `http://<machine-ip-address>:2283/api`<p align="left"><img src="design/login-screen.jpeg" width="250" title="Example login screen"><p/>+## Mobile app+## F-DroidYou can get the app on F-droid by clicking the image below.diff --git a/install.sh b/install.shnew file mode 100755index 0000000000..5372948847--- /dev/null+++ b/install.sh@@ -0,0 +1,83 @@+echo "Starting Immich installation..."++ip_address=$(hostname -I | awk '{print $1}')++RED='\033[0;31m'+GREEN='\032[0;31m'+NC='\033[0m' # No Color++machine_has() {+ type "$1" >/dev/null 2>&1+}++create_immich_directory() {+ echo "Creating Immich directory..."+ mkdir -p ./immich-app/immich-data+}++download_docker_compose_file() {+ echo "Downloading docker-compose.yml..."+ curl -L https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml -o ./immich-app/docker-compose.yml >/dev/null 2>&1+}++download_dot_env_file() {+ echo "Downloading .env file..."+ curl -L https://raw.githubusercontent.com/immich-app/immich/main/docker/.env.example -o ./immich-app/.env >/dev/null 2>&1+}++populate_upload_location() {+ echo "Populating default UPLOAD_LOCATION value..."++ cd ./immich-app/immich-data++ upload_location=$(pwd)++ # Replace value of UPLOAD_LOCATION in .env with upload_location path+ if [[ "$OSTYPE" == "darwin"* ]]; then+ sed -i '' "s|UPLOAD_LOCATION=.*|UPLOAD_LOCATION=$upload_location|" ../.env+ else+ sed -i "s|UPLOAD_LOCATION=.*|UPLOAD_LOCATION=$upload_location|" ../.env+ fi++ cd ..+}++start_docker_compose() {+ echo "Starting Immich's docker containers"++ if machine_has "docker compose"; then {+ docker compose up --remove-orphans -d++ show_friendly_message+ exit 0+ }; fi++ if machine_has "docker-compose"; then+ docker-compose up --remove-orphans -d++ show_friendly_message+ exit 0+ fi+}++show_friendly_message() {+ echo "Succesfully deployed Immich!"+ echo "You can access the website at http://$ip_address:2283 and the server URL for the mobile app is http://$ip_address:2283/api"+ echo "The backup (or upload) location is $upload_location"+ echo "---------------------------------------------------"+ echo "If you want to confgure custom information of the server, including the database, Redis information, or the backup (or upload) location, etc.++ 1. First bring down the containers with the command 'docker-compose down' in the immich-app directory,++ 2. Then change the information that fits your needs in the '.env' file,++ 3. Finally, bring the containers back up with the command 'docker-compose up --remove-orphans -d' in the immich-app directory"++}++# MAIN+create_immich_directory+download_docker_compose_file+download_dot_env_file+populate_upload_location+start_docker_composediff --git a/mobile/android/fastlane/Fastfile b/mobile/android/fastlane/Fastfileindex 3ab753d410..d6ba2fb411 100644--- a/mobile/android/fastlane/Fastfile+++ b/mobile/android/fastlane/Fastfile@@ -31,7 +31,7 @@ platform :android dobuild_type: 'Release',properties: {"android.injected.version.code" => 29,- "android.injected.version.name" => "1.19.0",+ "android.injected.version.name" => "1.20.0",})upload_to_play_store(skip_upload_apk: true, skip_upload_images: true, skip_upload_screenshots: true, aab: '../build/app/outputs/bundle/release/app-release.aab')diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxprojindex a92e0b058e..4ed6cda265 100644--- a/mobile/ios/Runner.xcodeproj/project.pbxproj+++ b/mobile/ios/Runner.xcodeproj/project.pbxproj@@ -360,7 +360,7 @@CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;CODE_SIGN_IDENTITY = "Apple Development";CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 35;+ CURRENT_PROJECT_VERSION = 38;DEVELOPMENT_TEAM = 2F67MQ8R79;ENABLE_BITCODE = NO;INFOPLIST_FILE = Runner/Info.plist;@@ -495,7 +495,7 @@CLANG_ENABLE_MODULES = YES;CODE_SIGN_IDENTITY = "Apple Development";CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 35;+ CURRENT_PROJECT_VERSION = 38;DEVELOPMENT_TEAM = 2F67MQ8R79;ENABLE_BITCODE = NO;INFOPLIST_FILE = Runner/Info.plist;@@ -522,7 +522,7 @@CLANG_ENABLE_MODULES = YES;CODE_SIGN_IDENTITY = "Apple Development";CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 35;+ CURRENT_PROJECT_VERSION = 38;DEVELOPMENT_TEAM = 2F67MQ8R79;ENABLE_BITCODE = NO;INFOPLIST_FILE = Runner/Info.plist;diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plistindex 642a32b862..a8b30d6563 100644--- a/mobile/ios/Runner/Info.plist+++ b/mobile/ios/Runner/Info.plist@@ -17,11 +17,11 @@<key>CFBundlePackageType</key><string>APPL</string><key>CFBundleShortVersionString</key>- <string>1.18.1</string>+ <string>1.20.0</string><key>CFBundleSignature</key><string>????</string><key>CFBundleVersion</key>- <string>35</string>+ <string>38</string><key>LSRequiresIPhoneOS</key><true /><key>MGLMapboxMetricsEnabledSettingShownInApp</key>diff --git a/mobile/ios/fastlane/Fastfile b/mobile/ios/fastlane/Fastfileindex f89996dc13..d616d57ebe 100644--- a/mobile/ios/fastlane/Fastfile+++ b/mobile/ios/fastlane/Fastfile@@ -19,7 +19,7 @@ platform :ios dodesc "iOS Beta"lane :beta doincrement_version_number(- version_number: "1.19.0"+ version_number: "1.20.0")increment_build_number(build_number: latest_testflight_build_number + 1,diff --git a/mobile/ios/fastlane/report.xml b/mobile/ios/fastlane/report.xmlindex 030055c542..4e2d1d6a5d 100644--- a/mobile/ios/fastlane/report.xml+++ b/mobile/ios/fastlane/report.xml@@ -5,32 +5,34 @@- <testcase classname="fastlane.lanes" name="0: default_platform" time="0.000227">+ <testcase classname="fastlane.lanes" name="0: default_platform" time="0.000213"></testcase>- <testcase classname="fastlane.lanes" name="1: increment_version_number" time="0.526426">+ <testcase classname="fastlane.lanes" name="1: increment_version_number" time="2.088407"></testcase>- <testcase classname="fastlane.lanes" name="2: latest_testflight_build_number" time="7.096281">+ <testcase classname="fastlane.lanes" name="2: latest_testflight_build_number" time="22.635867"></testcase>- <testcase classname="fastlane.lanes" name="3: increment_build_number" time="0.476898">+ <testcase classname="fastlane.lanes" name="3: increment_build_number" time="0.376681"></testcase>- <testcase classname="fastlane.lanes" name="4: build_app" time="102.893162">+ <testcase classname="fastlane.lanes" name="4: build_app" time="91.762747"></testcase>- <testcase classname="fastlane.lanes" name="5: upload_to_testflight" time="130.468341">+ <testcase classname="fastlane.lanes" name="5: upload_to_testflight" time="49.149884">++ <failure message="/opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/actions/actions_helper.rb:67:in `execute_action' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' Fastfile:30:in `block (2 levels) in parsing_binding' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/lane.rb:33:in `call' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/runner.rb:45:in `execute' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in `call' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in `run' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/gems/fastlane-2.207.0/bin/fastlane:23:in `<top (required)>' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/bin/fastlane:25:in `load' /opt/homebrew/Cellar/fastlane/2.207.0/libexec/bin/fastlane:25:in `<main>' Error uploading ipa file: [Transporter Error Output]: ERROR ITMS-90186: Invalid Pre-Release Train. The train version '1.19.0' is closed for new build submissions [Transporter Error Output]: ERROR ITMS-90062: This bundle is invalid. The value for key CFBundleShortVersionString [1.19.0] in the Info.plist file must contain a higher version than that of the previously approved version [1.19.0]. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring [Transporter Error Output]: Return status of iTunes Transporter was 1: ERROR ITMS-90186: Invalid Pre-Release Train. The train version '1.19.0' is closed for new build submissions \nERROR ITMS-90062: This bundle is invalid. The value for key CFBundleShortVersionString [1.19.0] in the Info.plist file must contain a higher version than that of the previously approved version [1.19.0]. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring [Transporter Error Output]: The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure." /></testcase>diff --git a/web/src/lib/components/shared-components/navigation-bar.svelte b/web/src/lib/components/shared-components/navigation-bar.svelteindex 61955fe703..cc71227449 100644--- a/web/src/lib/components/shared-components/navigation-bar.svelte+++ b/web/src/lib/components/shared-components/navigation-bar.svelte@@ -93,7 +93,7 @@>{#if shouldShowProfileImage}<img- src={`${serverEndpoint}/user/profile-image/${user.id}`}+ src={`api/user/profile-image/${user.id}`}alt="profile-img"class="inline rounded-full h-12 w-12 object-cover shadow-md"/>