# Installation

The service can be installed through the Portainer web interface.

<p class="callout info">Learn about [creating a new stack](https://hub.subspace.services/books/portainer/page/creating-a-new-stack "Creating a New Stack").</p>

## Docker Compose

Use the following code to install the service:

```yaml
---
services:
    kavita:
        image: lscr.io/linuxserver/kavita:latest
        container_name: kavita
        network_mode: bridge
        volumes:
            # Persistent Data
            - /srv/kavita:/kavita/config 

            # Media Files
            - /mnt/comics:/comics     
            - /mnt/books:/books
        environment:
            - TZ=America/Los_Angeles
            - PUID=1000
            - PGID=1000
        ports:
            - "5030:5000"
        restart: unless-stopped
```