## Docker compose: ``` docuseal-listener: container_name: docuseal-listener restart: unless-stopped ports: - "5001:8000" # Expose port 5001 on your host, mapping to port 8000 in the container environment: # Add these two lines for URL rewriting - DOCUSEAL_PUBLIC_URL=https://docu.nord-go.com - DOCUSEAL_INTERNAL_URL=http://app:3000 # Enable or disable Verification - DISABLE_WEBHOOK_VERIFICATION=true # IMPORTANT: Set your secret here - DOCUSEAL_WEBHOOK_SECRET=YourSuperSecretTokenFromDocuseal # This internal path must match the one in the Python script - PAPERLESS_CONSUME_DIR=/consume volumes: # IMPORTANT: This must match the volume name used by your Paperless consume directory - paperless_consume:/consume ``` ## Setup: **Configure Docuseal Webhook:** * Go to your Docuseal webhook settings. * Set the **URL** to `http://:5001/webhook/docuseal`. * Set the **Secret** to the same value you used for `DOCUSEAL_WEBHOOK_SECRET` in your `docker-compose.yml` file. * Ensure the `form.completed` event is enabled.