反向代理神器Nginx Proxy Manager
创建一个 docker-compose.yml 文件:
version: '3'
services:
npm:
image: 'chishin/nginx-proxy-manager-zh:latest'
restart: unless-stopped
container_name: npm
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
部署运行
docker-compose up -d
默认管理员信息:
Email: admin@example.com
Password: changeme
快速升级
docker-compose down
docker-compose pull
docker-compose up -d
halo自建网站
docker run -it -d --name halo -p 8090:8090 -e JVM_XMS="256m" -e JVM_XMX="1024m" -e JVM_OPTS="-Xms256m -Xmx1024m" -v ~/.halo:/root/.halo --restart=unless-stopped halohub/halo:latest
创建一个 docker-compose.yml 文件:
version: '3'
services:
halo:
image: 'halohub/halo:latest'
restart: unless-stopped
container_name: halo
ports:
- '8090:8090'
volumes:
- ./halo:/root/.halo
typecho
docker run -d \
--name=typecho \
--restart always \
--mount type=tmpfs,destination=/tmp \
-v ~/.typecho:/data \
-e PHP_TZ=Asia/Shanghai \
-e PHP_MAX_EXECUTION_TIME=600 \
-p 90:80 \
80x86/typecho:latest
webmonitor 网页自动更新提醒
https://courier.toptopn.com/
docker container run -p 4000:4000 -e EXT_USER=***@qq.com -e EXT_PWD=**9***.** --name ext webmonitor/ext:v0.8
docker container run -p 4000:4000 -p 3200:3200 -e EXT_USER=***@qq.com -e EXT_PWD=**9***.** --name ext webmonitor/ext:latest
青龙面板
docker run -dit -v $PWD/.ql:/ql/data -p 5700:5700 --name qinglong --hostname qinglong --restart unless-stopped whyour/qinglong:latest
version: '3'
services:
qinglong:
image: 'whyour/qinglong:latest'
restart: unless-stopped
container_name: qinglong
ports:
- '5700:5700'
volumes:
- ./data:/ql/data
alistV3
docker run -d --restart=always -v /root/.alist-latestv3:/opt/alist/data -p 5244:5244 --name="alistv3" xhofe/alist:latest
version: '3'
services:
alist:
image: 'xhofe/alist:latest'
restart: unless-stopped
container_name: alist
ports:
- '5244:5244'
volumes:
- ./data:/opt/alist/data
配置国内镜像源
1、创建配置文件
vim /etc/docker/daemon.json
2、添加镜像配置
{
"registry-mirrors": [
"https://0b27f0a81a00f3560fbdc00ddd2f99e0.mirror.swr.myhuaweicloud.com",
"https://ypzju6vq.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://cr.console.aliyun.com/"
]
}
3、重启Docker
systemctl restart docker
4、检查配置
docker info
评论区