--- version: "3" services: node: image: next-js:latest container_name: node build: . volumes: - ./src:/usr/src/app/ ports: - "3444:3000" command: bash -c 'if [ ! -d "/usr/src/app/test" ]; then npx create-next-app info && cd info && npm run dev; else cd info && npm run dev; fi'