# Setup & Configuration

We need to install the service through Portainer and configure any necessary settings.

# Preparation

There are some things we need to do in preparation to install this service.

## Volumes

<details id="bkmrk-media-folders-radarr"><summary>Persistent Data</summary>

This is where the service will store its own application data and ensures we can quickly update the service image.

<p class="callout warning">Ensure your user has permissions to access the folder.</p>

</details>## Environment

<details id="bkmrk-tz-this-is-the-curre"><summary>TZ</summary>

This is the current time zone formatted using the [tz database.](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)

<p class="callout info">*For example:* America/Vancouver</p>

</details>

# Installation

Flood can be installed by following the Portainer guide for [creating a new stack](https://hub.subspace.services/books/portainer/page/creating-a-new-stack "Creating a New Stack"). Learn about [configuring a Docker stacks](https://hub.subspace.services/books/services/page/managing-services "Installing Services") and then use the following Docker Compose code to run this app:

```yaml
---
services:
  flood:
    container_name: flood
    image: jesec/flood:latest
    user: 1000:1000
    restart: unless-stopped
    command: --port 3000 --allowedpath /downloads --allowedpath /config
    environment:
      - HOME=/config
      - TZ=America/Vancouver
    volumes:
      # Persistent Data
      - /srv/flood:/config

      # Download Folders
      - /mnt/downloads/:/downloads
    ports:
      - 3000:3000
      
```

# Updating

<p class="callout success">Re-Deploy the Stack</p>

This service has been optimized for running in Docker.

This allows you to [re-deploy the stack through Portainer](https://hub.subspace.services/books/portainer/page/updating-a-stack "Updating a Stack") to download the latest updates.