[EP.0] ติดตั้ง n8n ด้วย Docker ง่ายๆ ใน 5 นาที | Step by Step Tutorial ภาษาไทย
2 min read
5 days ago
Published on Aug 31, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
In this tutorial, you'll learn how to install n8n, a powerful workflow automation tool, using Docker in just five minutes. This step-by-step guide is perfect for beginners who want to get started with n8n quickly and efficiently.
Step 1: Install Docker Desktop
- Visit the Docker Desktop website and download the latest version for your operating system.
- Follow the installation instructions provided on the website to set up Docker Desktop on your machine.
- Once installed, launch Docker Desktop and ensure that it is running properly.
Step 2: Set Up n8n with Docker Compose
- Create a new directory for your n8n project. You can do this by opening your terminal and running:
mkdir n8n-docker cd n8n-docker
- Create a new
docker-compose.yml
file in the directory. You can do this using a text editor or by running:touch docker-compose.yml
- Open the
docker-compose.yml
file and add the following code to set up n8n:version: '3' services: n8n: image: n8n ports: - "5678:5678" environment: - N8N_BASIC_AUTH_ACTIVE=true - N8N_BASIC_AUTH_USER=your_username - N8N_BASIC_AUTH_PASSWORD=your_password volumes: - ~/.n8n:/root/.n8n
- Replace
your_username
andyour_password
with secure credentials for accessing n8n.
- Replace
Step 3: Launch n8n
- In the terminal, run the following command to start the n8n service:
docker-compose up
- Wait for the process to complete. You should see logs indicating that n8n is starting up.
Step 4: Access the n8n User Interface
- Open a web browser and navigate to
http://localhost:5678
. - You will be prompted to enter the username and password you set in the
docker-compose.yml
file. - Once logged in, you will have access to the n8n user interface, where you can start creating workflows.
Conclusion
Congratulations! You have successfully installed n8n using Docker. You can now explore its features and create your own automated workflows. For further information and advanced configurations, check out the n8n documentation. If you encounter any issues or have questions, feel free to comment below or reach out through the provided contact methods. Happy automating!