# Nginx Proxy Manager

## About

I use Nginx Proxy Manager as my primary reverse proxy. It helps me hide all my services behind one single port. I haven't had any issues with it over the 1.5 years that I've been using it. 10/10 Recommend!

![](/files/XV1ZBd1On54VuVDtQ9qJ)

![](/files/aAEZvSHYplh2Vkv68XbX)

## Docker-Compose

My personal Docker-Compose that I use on my production.

```
version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    environment:
      DB_MYSQL_HOST: "db"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "npm"
      DB_MYSQL_PASSWORD: "******"
      DB_MYSQL_NAME: "npm"
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  db:
    image: 'jc21/mariadb-aria:latest'
    environment:
      MYSQL_ROOT_PASSWORD: '******'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: '******'
    restart: unless-stopped
    volumes:
      - ./data/mysql:/var/lib/mysql
```


---

# 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://homelab.4pfsec.com/networking/nginx-proxy-manager.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.
