version: '3.8'

services:
  app:
    build: .
    container_name: nodejs-app
    ports:
      - "3000"
    volumes:
      - /home/docker/myapp:/app
      - /app/node_modules
    working_dir: /app
    command: npm start
    restart: unless-stopped