version: "3.8" services: app: build: context: . dockerfile: Dockerfile ports: - "${PORT:-3000}:${PORT:-3000}" # Map the container port to the host port environment: - NODE_ENV=${NODE_ENV:-production} - PORT=${PORT:-3000} - SOCKET_IO_PATH=${SOCKET_IO_PATH:-/socket.io} - STATIC_FILES_PATH=${STATIC_FILES_PATH:-public} volumes: - .:/app # Mount the current directory to the container command: npm start