Guide to Installing n8n with Docker Compose and Nginx
I. Prerequisites
-
Docker and Docker Compose installed on your machine
-
Docker: Tool for running containers.
-
Docker Compose: Tool for managing multiple containers using YAML.
– If you haven’t installed them yet, you can refer to the Docker installation guide [here].
-
-
A computer or server with sufficient resources
-
Minimum RAM: 2GB
-
CPU: at least 2 cores
-
Disk space: 20GB+
-
II. Creating the Project
1. Create a directory to store the configuration files and n8n data:
2. Inside this directory, create a compose.yaml file to configure n8n.
Add the following content:
3. Create the Nginx configuration file
In the n8n-docker directory, create the nginx.conf file:
Add the following content:
4. Run the project
After configuring both compose.yaml and nginx.conf, start the project with:
Then check if the containers are running successfully:
If the output is similar to the example shown above, the project has started successfully.




