Nginx Proxy Manager
docker run -d --name=npm \
-p 80:80 \
-p 81:81 \
-p 443:443 \
-e PUID=1001 \
-e PGID=1001 \
-e TZ=Europe/Sofia \
-v /home/dock/npm/data:/data \
-v /home/dock/npm/letsencrypt:/etc/letsencrypt \
--restart always \
jc21/nginx-proxy-manager
With Docker Compose
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: "npm"
DB_MYSQL_NAME: "npm"
volumes:
- /home/dock/npm/data:/data
- /home/dock/npm/letsencrypt:/etc/letsencrypt
db:
image: 'jc21/mariadb-aria:latest'
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- /home/dock/npm/mysql:/var/lib/mysql
docker-compose up -d