version: '3.8' services: dashboard: build: context: . dockerfile: Dockerfile ports: - "3000:80" restart: unless-stopped healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80/health"] interval: 30s timeout: 3s retries: 3 start_period: 10s environment: - NODE_ENV=production # Development mode dashboard-dev: image: node:20-alpine working_dir: /app volumes: - .:/app - /app/node_modules ports: - "3000:3000" command: sh -c "npm install && npm run dev -- --host" environment: - NODE_ENV=development profiles: - dev