docker-compose.yml 430 B

1234567891011121314151617
  1. version: '3.8'
  2. services:
  3. next-web-ui:
  4. container_name: next-web-ui
  5. build:
  6. context: .
  7. dockerfile: Dockerfile
  8. args:
  9. - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-https://api.text.skin}
  10. restart: always
  11. ports:
  12. # 将容器的 3000 映射到宿主机的 3000,且仅限本机访问
  13. - "127.0.0.1:3000:3000"
  14. environment:
  15. - NEXT_DISABLE_ESLINT=1
  16. - NODE_ENV=production