mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-03-11 08:18:14 -04:00
2.6 KiB
2.6 KiB
home | heroImage | actionText | actionLink | footer |
---|---|---|---|---|
true | /logo.png | Get Started → | /guide/ | MIT Licensed | Copyright © 2016-present jc21.com |
Get Connected
Expose web services on your network · Free SSL with Let's Encrypt · Designed with security in mind · Perfect for home networks
Beautiful UI
Based on Tabler, the interface is a pleasure to use. Configuring a server has never been so fun.
Quick Setup
- Install Docker and Docker-Compose
- Create a config file for example
{
"database": {
"engine": "mysql",
"host": "db",
"name": "npm",
"user": "npm",
"password": "npm",
"port": 3306
}
}
- Create a docker-compose.yml file similar to this:
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
db:
image: 'jc21/mariadb-aria:10.4'
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql
- Bring up your stack
docker-compose up -d
- Log in to the Admin UI
When your docker container is running, connect to it on port 81
for the admin interface.
Sometimes this can take a little bit because of the entropy of keys.
Default Admin User:
Email: admin@example.com
Password: changeme
Immediately after logging in with this default user you will be asked to modify your details and change your password.