# Instalar Immich

#### Guía oficial

[Docker Compose | Immich](https://immich.app/docs/install/docker-compose/)

## Requisitos

- [Docker Engine](https://wiki.pablomp.es/books/docker-engine/page/instalar-docker-engine "Instalar Docker Engine")
- [Instalar Nginx proxy manager](https://wiki.pablomp.es/books/nginx-proxy-manager/page/instalar-nginx-proxy-manager "Nginx proxy manager")
- Dominio/subdominio

## Instalación

Crear las carpetas `mkdir -p docker/immich-app`.

Obtener el archivo `docker-compose.yml`.

```bash
wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
```

Obtener el archivo `.env`.

```bash
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env
```

Modificamos el archivo `.env` para establecer la localización de las fotos y establecer una contraseña para la base de datos

```yaml
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD="Contraseña super segura"

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
```

Una vez creado ejecutar `docker-compose up -d`.

Acceder con `IP:2283`.