- 首先查看自己部署nginx-proxy-manager的docker-compose.yml,位于
/opt/docker/NginxProxyManager
目录下1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
network_mode: "host"
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
# Add any other Stream port you want to expose
# - '21:21' # FTP
environment:
DISABLE_IPV6: 'true'
# These are the settings to access your db
# If you would rather use Sqlite uncomment this
# and remove all DB_MYSQL_* lines above
DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
# - ./Users/brittanysalas/.config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt - 查看volume发现将当前目录下的data目录映射到容器的/data,于是在
./data
下创建yirufeng.top
目录, - 在
yirufeng.top
目录下创建index.html文件,内容如下:
旧版本的docker称为docker或docker-engine,使用如下命令卸载旧版本
1 | sudo yum remove docker docker-common docker-selinux docker-engine |