Nginx 在Docker中安装配置
记录一下,万一哪天忘记了,再去翻找看不太容易。虽然写的很简单,但应该很实用吧~
系统
- Linux
环境
操作
下载包
https://files-cdn.cnblogs.com/files/linyisonger/nginx.zip
wget https://files-cdn.cnblogs.com/files/linyisonger/nginx.zip
解压
unzip nginx.zip
进入文件夹
cd nginx
构建
docker-compose up --force-recreate --build -d