Nginx Proxy Manager
Use these steps to run Nginx Proxy Manager with Docker Compose.
Create the Compose File
Create a docker-compose.yml file with the Nginx Proxy Manager service:
services:
app:
image: docker.io/jc21/nginx-proxy-manager:latest
restart: unless-stopped
ports:
- "80:80"
- "81:81"
- "443:443"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
environment:
INITIAL_ADMIN_EMAIL: ${INITIAL_ADMIN_EMAIL}
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD}
Create the Environment File
Create a .env file in the same directory as docker-compose.yml:
INITIAL_ADMIN_EMAIL=my@example.com
INITIAL_ADMIN_PASSWORD=mypassword1
Start Nginx Proxy Manager
Run Docker Compose from the directory containing both files:
docker compose up -d
The admin UI will be available at http://localhost:81.