blog icon indicating copy to clipboard operation
blog copied to clipboard

nuxt docker 部署后 本地不能访问通过 http://localhost:3000/ 访问

Open wuweijia opened this issue 2 years ago • 0 comments

需要更改 nuxt.config.js 配置

 server: {
    port: 8080,
    host: '0.0.0.0'
 }

或者更改 dockerfile ENV HOST 0.0.0.0

wuweijia avatar Jul 25 '22 10:07 wuweijia