version: '3.8' services: next-web-ui: container_name: next-web-ui build: context: . dockerfile: Dockerfile args: - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-https://api.text.skin} restart: always ports: # 将容器的 3000 映射到宿主机的 3000,且仅限本机访问 - "127.0.0.1:3000:3000" environment: - NEXT_DISABLE_ESLINT=1 - NODE_ENV=production