services: frontend: # 服务名称 build: . # 基于当前目录构建镜像 ports: # 端口映射 - "3000:3000" # 主机端口:容器端口 environment: # 环境变量 - NODE_ENV=production # 设置Node.js环境为生产环境 restart: unless-stopped # 自动重启策略 container_name: deotaland-frontend-compose # 容器名称