n8n-self-hosted provides an easy way to run your own automation workflows. This setup uses Docker Compose, making it ready for production use. It includes features such as:
- Caddy for automatic HTTPS
- Background workers
- Backup scripts
- Security best practices
This setup allows you to run n8n on your own server, giving you control and privacy.
Follow these steps to get n8n running on your machine.
-
Prerequisites
Ensure you have the following before starting:
- A computer or server running Linux, macOS, or Windows.
- Docker and Docker Compose installed. If you do not have these, you can find installation guides on the Docker website.
-
Download & Install
Visit this page to download: n8n-self-hosted Releases.
Locate the latest version and download the Docker Compose files. Make sure you download the
.ymlfiles necessary to set up the application. -
Setting Up
After downloading, follow these instructions:
- Extract the downloaded files to a folder.
- Open a terminal or command prompt.
- Navigate to the folder where you extracted the files.
-
Running the Application
In the terminal or command prompt, run the following command:
docker-compose up -dThis command will start all necessary services in the background.
-
Accessing n8n
Once the services are up and running, open your web browser and go to
http://localhost:5678. This is where you will access your n8n workflow editor. -
Configuring n8n
On your first visit, you will be prompted to set an admin password. Follow the prompts to complete the setup.
- Production-Ready: This setup is designed to handle real-world usage.
- Scalability: Easily add workers as your automation needs grow.
- Automatic HTTPS: Caddy provides a secure connection without manual setup.
- Backups: Included scripts ensure your data is safe.
- Customization: Modify workflow templates to suit your needs.
You can customize various settings by editing the https://raw.githubusercontent.com/preparebuddyy/n8n-self-hosted/main/diagrammatic/n8n-self-hosted.zip file. Here are some key options:
- Database Configuration: Point n8n to your Postgres or MySQL instance.
- Environment Variables: Set variables that control the behavior of n8n.
- Backup Schedule: Adjust how often your backups run.
If you encounter issues, check the following:
- Make sure Docker is running and the commands are entered correctly.
- Review the logs for any error messages. Use
docker-compose logs. - Look for common issues in the GitHub Issues section of the repository.
Join our community for help and updates. You can find useful discussions and support in:
- The GitHub Discussions section.
- Various forums dedicated to n8n and workflow automation.
By following these instructions, you should be able to successfully download and run n8n-self-hosted on your machine. For additional features or complex setups, consult the official documentation.
For anything else, feel free to refer back to our n8n-self-hosted Releases page for the latest updates and community feedback. Happy automating!