|
|
|
|
@@ -2,6 +2,9 @@
|
|
|
|
|
sidebar_position: 30
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
import CodeBlock from '@theme/CodeBlock';
|
|
|
|
|
import ExampleEnv from '!!raw-loader!../../../docker/example.env';
|
|
|
|
|
|
|
|
|
|
# Docker Compose [Recommended]
|
|
|
|
|
|
|
|
|
|
Docker Compose is the recommended method to run Immich in production. Below are the steps to deploy Immich with Docker Compose.
|
|
|
|
|
@@ -40,89 +43,10 @@ Optionally, you can use the [`hwaccel.yml`][hw-file] file to enable hardware acc
|
|
|
|
|
### Step 2 - Populate the .env file with custom values
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
|
|
|
|
|
<summary>Example <code>.env</code> content</summary>
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
###################################################################################
|
|
|
|
|
# Database
|
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
|
|
DB_HOSTNAME=immich_postgres
|
|
|
|
|
DB_USERNAME=postgres
|
|
|
|
|
DB_PASSWORD=postgres
|
|
|
|
|
DB_DATABASE_NAME=immich
|
|
|
|
|
|
|
|
|
|
# Optional Database settings:
|
|
|
|
|
# DB_PORT=5432
|
|
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
|
# Redis
|
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
|
|
REDIS_HOSTNAME=immich_redis
|
|
|
|
|
|
|
|
|
|
# Optional Redis settings:
|
|
|
|
|
|
|
|
|
|
# Note: these parameters are not automatically passed to the Redis Container
|
|
|
|
|
# to do so, please edit the docker-compose.yml file as well. Redis is not configured
|
|
|
|
|
# via environment variables, only redis.conf or the command line
|
|
|
|
|
|
|
|
|
|
# REDIS_PORT=6379
|
|
|
|
|
# REDIS_DBINDEX=0
|
|
|
|
|
# REDIS_PASSWORD=
|
|
|
|
|
# REDIS_SOCKET=
|
|
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
|
# Upload File Location
|
|
|
|
|
#
|
|
|
|
|
# This is the location where uploaded files are stored.
|
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
|
|
UPLOAD_LOCATION=absolute_location_on_your_machine_where_you_want_to_store_the_backup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
|
# Log message level - [simple|verbose]
|
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
|
|
LOG_LEVEL=simple
|
|
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
|
# Reverse Geocoding
|
|
|
|
|
#
|
|
|
|
|
# Reverse geocoding is done locally which has a small impact on memory usage
|
|
|
|
|
# This memory usage can be altered by changing the REVERSE_GEOCODING_PRECISION variable
|
|
|
|
|
# This ranges from 0-3 with 3 being the most precise
|
|
|
|
|
# 3 - Cities > 500 population: ~200MB RAM
|
|
|
|
|
# 2 - Cities > 1000 population: ~150MB RAM
|
|
|
|
|
# 1 - Cities > 5000 population: ~80MB RAM
|
|
|
|
|
# 0 - Cities > 15000 population: ~40MB RAM
|
|
|
|
|
####################################################################################
|
|
|
|
|
|
|
|
|
|
# DISABLE_REVERSE_GEOCODING=false
|
|
|
|
|
# REVERSE_GEOCODING_PRECISION=3
|
|
|
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
|
# WEB - Optional
|
|
|
|
|
#
|
|
|
|
|
# Custom message on the login page, should be written in HTML form.
|
|
|
|
|
# For example:
|
|
|
|
|
# PUBLIC_LOGIN_PAGE_MESSAGE="This is a demo instance of Immich.<br><br>Email: <i>demo@demo.de</i><br>Password: <i>demo</i>"
|
|
|
|
|
####################################################################################
|
|
|
|
|
|
|
|
|
|
PUBLIC_LOGIN_PAGE_MESSAGE="My Family Photos and Videos Backup Server"
|
|
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
|
# Immich Version - Optional
|
|
|
|
|
#
|
|
|
|
|
# This allows all immich docker images to be pinned to a specific version. By default,
|
|
|
|
|
# the version is "release" but could be a specific version, like "v1.59.0".
|
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
|
|
#IMMICH_VERSION=
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<summary>
|
|
|
|
|
Example <code>.env</code> content
|
|
|
|
|
</summary>
|
|
|
|
|
<CodeBlock language="bash">{ExampleEnv}</CodeBlock>
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
- Populate custom database information if necessary.
|