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/
Note: we use self-signed certificates for local development to enable Oauth callbacks for 3rd party integrations, e.g. Slack.
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
For convenience, a wrapper script has been added to make this less clunky. The ./up
command will startup n8n and takes a list of additional services to run with it.
./up Postgres
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!