Nginx Proxy Manager进阶:使用Docker network

Nginx Proxy Manager

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt

networks:
default:
external: true
name: ngpm
  • sudo docker network create ngpm

  • mkdir -p ~/base/NGPM && cd ~/base/NGPM && nano docker-compose.yml

  • sudo docker-compose up -d

  • 登录到 http://ip:81

  • Email: admin@example.com

  • Password: changeme

  • 反代 Nginx Proxy Manager

反代WordPress

1
2
3
4
5
6
7
8
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
volumes:
- ./www:/var/www/html

  • mkdir -p ~/app/WordPress && cd ~/app/WordPress && nano docker-compose.yml

  • sudo docker-compose up -d

  • 反代写法如下 serviceName:port


Nginx Proxy Manager进阶:使用Docker network
https://occdn.limour.top/2523.html
Author
Limour
Posted on
January 30, 2023
Licensed under