services: nodejs: image: node:22-alpine working_dir: /usr/project/app restart: unless-stopped command: > sh -c 'echo "Running setup..."; npm install; echo "Starting the node..."; npm start' volumes: - ./app/:/usr/project/app/:rw - ./.env:/usr/project/.env:ro - ./example.env:/usr/project/example.env:ro - ./data/:/usr/project/data/:rw ports: - "${PORT}:${PORT}"