version: '3.8' services: app: image: node:18 working_dir: /usr/src/app volumes: - ./:/usr/src/app ports: - "3000:3000" environment: - NODE_ENV=production - PORT=3000 command: sh -c "npm install && npm start"