# Installation Schritt fuer Schritt

## Installation

### 1. Docker und Git

```
curl -fsSL https://get.docker.com | sh
systemctl enable docker
apt-get install -y git
```

### 2. Repository klonen

```
cd /opt
git clone https://github.com/ldroeger/LD-Connect-Portal.git
cd LD-Connect-Portal
```

### 3. Konfiguration

```
cp .env.example .env
nano .env
# DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD, JWT_SECRET anpassen
```

### 4. Starten

```
docker compose up -d --build
```

### 5. Nginx und SSL

```
apt-get install -y nginx certbot python3-certbot-nginx
certbot --nginx -d portal.ihrefirma.de
```

### 6. Einrichtungsassistent

Browser oeffnen: https://portal.ihrefirma.de und den Schritten folgen.