# Installation via Docker

This guide explains how to run **Zenith** using Docker.

The container already includes a preconfigured **Nginx web server**.

Image location:

`git.crystalsky.dev/crystalsky/zenith:latest`

---

# Prerequisites

Make sure docker and the compose-plugin is installed.
[Install Docker and compose-plugin](https://base.crystalsky.dev/books/docker/page/install-docker-and-compose-plugin)

----

# 1. Prepare the Directory

Create a directory for the installation.

```bash
mkdir zenith
cd zenith
```

---
# 2. Docker Compose Installation
Create a `docker-compose.yml` file.

```yaml
services:
  zenith:
    image: git.crystalsky.dev/crystalsky/zenith:latest
    container_name: zenith
    ports:
      - "8000:80"
    restart: unless-stopped
```

Start the container:

```bash
docker compose up -d
```

Stop it:

```bash
docker compose down
```

---

# Updating the Container

Pull the update and restart the container:

```bash
docker compose pull
docker compose up -d
```