wuweijia / work-life-balance

记录工作与生活
https://github.com/wuweijia/wuweijia.github.io/issues
26 stars 2 forks source link

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

Open wuweijia opened 1 year ago

wuweijia commented 1 year ago

需要更改 nuxt.config.js 配置

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

或者更改 dockerfile ENV HOST 0.0.0.0