version: '3.8' services: teres-frontend: build: context: . dockerfile: Dockerfile target: production ports: - "3000:80" environment: - NODE_ENV=production restart: unless-stopped # 开发环境服务(可选) teres-frontend-dev: build: context: . dockerfile: Dockerfile.dev ports: - "5173:5173" volumes: - .:/app - /app/node_modules environment: - NODE_ENV=development profiles: - dev