version: '3.8' services: prod: container_name: home_automation image: nestjs-api-prod:1.0.0 build: context: . target: production dockerfile: ./Dockerfile command: npm run start:prod ports: - 3000:3000 - 9229:9229 networks: - nesjs-network volumes: - .:/usr/src/app - /usr/src/app/node_modules restart: unless-stopped networks: nesjs-network: