> ## Documentation Index
> Fetch the complete documentation index at: https://imageflowdoc.sakiko.de/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment

This guide helps you install and set up ImageFlow.

## Prerequisites

* Go 1.22 or higher
* Node.js 18 or higher (for building the frontend)
* WebP tools (`libwebp-tools`)
* AVIF tools (`libavif-apps`)
* Redis (optional, for metadata and tag storage)
* Docker and Docker Compose (optional, for containerized deployment)

## Installation

### Docker deployment

#### Use prebuilt image (recommended)

1. Clone the repository
   ```bash theme={null}
   git clone https://github.com/Yuri-NagaSaki/ImageFlow.git
   cd ImageFlow
   ```

2. Configure environment variables

   Copy the example env file and edit it:

   ```bash theme={null}
   cp .env.example .env
   # Edit the .env file
   ```

   Ensure Docker can read this `.env` file, or configure the variables directly in `docker-compose.yaml`.

3. Start the service
   ```bash theme={null}
   docker compose up -d
   ```

#### Local build deployment

1. Clone the repository
   ```bash theme={null}
   git clone https://github.com/Yuri-NagaSaki/ImageFlow.git
   cd ImageFlow
   ```

2. Configure environment variables
   ```bash theme={null}
   cp .env.example .env
   # Edit the .env file
   ```

3. Build and start
   ```bash theme={null}
   docker compose -f docker-compose-build.yml up --build -d
   ```
