# Nginx Proxy Manager Installation

{% hint style="warning" %}
für die Installation ist Docker nötig. Falls du diese nicht installiert hast, kannst du dies hier ganz schnell nachholen -> [Docker Installation](/rootserver/docker-installation.md)
{% endhint %}

* Aktualisiere die Paketlisten & installiere die Updates.

```bash
apt update && apt upgrade -y
```

* Erstelle ein Verzeichnis für `Nginx Proxy Manager`

```bash
mkdir ~/nginx-proxy
```

* Navigiere ins Verzeichnis

```bash
cd ~/nginx-proxy
```

* Erstelle Verzeichnisse für Benutzerdaten und SSL-Zertifikate.

```bash
mkdir {data,letsencrypt}
```

* Erstelle nun eine Compose Datei

```bash
nano docker-compose.yml
```

* Füge nun diesen Code ein

```bash
version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
```

* Bringe dein `Nginx Proxy Manager` zum laufen

```bash
docker-compose up -d
```

* Die Website kannst du unter <http://127.0.0.1:81> oder mit der Public adresse mit dem port `81` ereichen.
* Die Standart daten zum anmelden sind:

```bash
Email:    admin@example.com
Password: changeme
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ugurlu.de/rootserver/nginx-proxy-manager-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
