This example shows how to run a local N8N service using docker-compose.
- [Git](https://github.com/)
- [Docker](https://docs.docker.com/engine/install/)
- [Docker-Compose](https://docs.docker.com/compose/install/)
Clone the repo to your local machine by running the following command:
git clone [email protected]:bitovi/n8n-getting-started.git
Start the docker-compose service by running the following command:
docker-compose up --build
Watch the logs to ensure the service is running:
docker-compose logs -f
The tail of the logs should show the following message:
Editor is now accessible via:
https://localhost:5678/
Open a browser and navigate to the following URL: https://localhost:5678/
This repo contains folders with additional docker-compose files for other services that can be run in conjunction with N8N.
To use these additional services use the following command:
docker-compose -f docker-compose.yml -f <Service>/docker-compose.yml up
Where <Service>
is the name of the service you want to run. For example, to run N8N with Postgres, use the following command:
docker-compose -f docker-compose.yml -f Postgres/docker-compose.yml up
Adminer is a database management tool that can be used to manage the databases used by N8N. To access Adminer, navigate to the following URL: http://localhost:8080/
The credentials are pulled directly from the database environment variables. For example, if you are using Postgres, the credentials are:
System: Postgres
Server: pg-n8n
Username: n8n
Password: password
Database: n8n
Have fun N8N-ing!