docker-compose.yml文件内容
yaml 配置
version: '3.3'
services:
nginx:
ports:
- "8080:80"
image: nginx
切换到同级目录,执行compose指令
$ docker-compose up -d
执行命令后就可以打开相关网页了,我本地是:
http://192.168.99.100:8080/
version: '3.3'
services:
nginx:
ports:
- "8080:80"
image: nginx
切换到同级目录,执行compose指令
$ docker-compose up -d
执行命令后就可以打开相关网页了,我本地是:
http://192.168.99.100:8080/
本文标题:框架 | Docker | 6. Docker compose使
本文链接:https://www.haomeiwen.com/subject/riijwktx.html
网友评论