Back to services

PlugNPiN

Automatically scrapes containers with specific labels and creates local DNS/CNAME entries in Pi-Hole/AdGuard Home and proxy hosts in Nginx Proxy Manager

View alternatives to PlugNPiN
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: When this entry was written, the official website could not be fetched. The content below is compiled from known information, and only the parts that are reasonably certain have been kept. For specifics such as label syntax and environment variable names, please refer to the official documentation.

Introduction

PlugNPiN ties together Docker, Pi-hole and Nginx Proxy Manager. In a home lab, every time you deploy a new service, you usually have to do two things:

  1. Add a local DNS record in Pi-hole so that the domain name points to the server;
  2. Create a proxy host in Nginx Proxy Manager to forward the domain name to the container port.

PlugNPiN does both steps automatically. It watches Docker containers, reads the labels on them, and then creates or updates the corresponding configuration in Pi-hole and Nginx Proxy Manager.

Key Features

  • Automatic container discovery: Watches Docker containers and identifies services that carry PlugNPiN labels.
  • Automatic Pi-hole DNS entries: Creates local DNS records for services so that custom domain names resolve on the local network.
  • Automatic Nginx Proxy Manager proxy hosts: Reverse-proxies the domain name to the corresponding container address and port.
  • Label-driven configuration: Declare the domain name, address and port in Docker Compose or in container labels, so the configuration lives alongside the service.

Target Users and Use Cases

  • Home lab users who use Pi-hole for local network DNS and Nginx Proxy Manager as a reverse proxy;
  • Self-hosting enthusiasts who frequently add and remove Docker services and don't want to configure two dashboards by hand every time;
  • Users who want to reach internal services through friendly domain names such as servicename.home.

Core Strengths

  • Reduces repetitive manual configuration and lowers the chance of missed or incorrect settings;
  • Service configuration is written in one place in the Compose file, which makes version control and migration easier;
  • Runs as a container itself, so it fits straight into an existing Docker environment.

Deployment

PlugNPiN is usually deployed as a Docker container. The general steps are:

  1. Mount the Docker socket into PlugNPiN so that it can watch containers;
  2. Provide the addresses and login credentials for Pi-hole and Nginx Proxy Manager through environment variables;
  3. Add the appropriate labels to the service containers you want to expose, such as the domain name, target IP and port.

Technical Requirements

  • A host running Docker;
  • An accessible Pi-hole instance;
  • An accessible Nginx Proxy Manager instance.

Things to Note

  • It needs access to the Docker socket, so pay attention to permissions and security when deploying it;
  • It suits environments that already use Pi-hole and Nginx Proxy Manager. If you use Traefik, Caddy or another proxy solution, you may want to look for a corresponding integration tool instead.