Home » n8n» Connect Shopify to n8n with Docker (Beginner Guide)

Connect Shopify to n8n?

This guide shows how to connect Shopify to n8n using Docker for simple store automation. Yes, you can connect Shopify to n8n by creating a Shopify Admin API access token and adding it to n8n running in Docker. The instructions are step-by-step and include real commands.

What You Need

  • A Shopify store with admin access.
  • An n8n instance running via Docker or Docker Compose.
  • A Shopify custom app with Admin API access token.
  • Basic terminal skills and a browser to access n8n UI.

How to Connect Shopify to n8n

Below are clear steps to install n8n, obtain the Shopify token, add credentials, and run a sample workflow. Follow each step in order.

Step 1: Create a Shopify Custom App and Token

Log in to your Shopify admin. Go to Apps > Develop apps > Create an app. Give it a name and grant Admin API access for the resources you need (orders, products, etc.). Install the app and copy the Admin API access token and your shop name (example.myshopify.com).

Step 2: Prepare Docker Compose for n8n

Create a docker-compose.yml file. This example runs n8n on port 5678 and enables basic auth.

version: '3'
services:
  n8n:
    image: n8nio/n8n:latest
    restart: always
    ports:
      - "5678:5678"
    environment:
      - N8N_HOST=localhost
      - N8N_PORT=5678
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=strongpassword
    volumes:
      - ./n8n_data:/home/node/.n8n

Step 3: Start n8n

Run the compose file to start n8n. Use these commands in the folder with docker-compose.yml.

docker-compose pull

docker-compose up -d

Step 4: Add Shopify Credentials in n8n

Open n8n at http://localhost:5678 and log in with the basic auth credentials. Go to Credentials > Create > Shopify. Enter your shop domain (example.myshopify.com) and paste the Admin API access token. Save the credential with a clear name.

Step 5: Create a Sample Workflow

Create a new workflow. Add the Shopify node. Choose the trigger or resource you need, for example Order or Product. Select the Shopify credential you created. Add a simple action like sending data to webhook or logging to console.

Step-by-step Logic

  1. Create token in Shopify and note the shop domain.
  2. Run n8n via Docker Compose.
  3. Add Shopify credentials in n8n UI with the token.
  4. Build a workflow using Shopify trigger or actions.
  5. Test the workflow by creating a sample order or item in Shopify.

Update

To update n8n, pull the latest image and restart the service. Run these commands in the same folder as your docker-compose.yml.

docker-compose pull

docker-compose up -d

Security

Keep your Shopify Admin API token secret. Do not commit it to git or share it. Rotate the token if you suspect a leak.

Use HTTPS in production. Enable basic auth or OAuth for n8n. Limit access by IP or use a VPN. Run n8n behind a reverse proxy like Nginx with TLS.


Done

You have connected Shopify to n8n and ran a sample workflow. You can now expand automation for orders, products, and customers. Check logs and test triggers after changes.

Neil
Written by Neil

Neil is a true n8n geek who lives and breathes workflow automation. He dives deep into nodes, triggers, webhooks, custom logic, and self-hosting setups, sharing everything he learns about n8n on AutomationCompare.com. As part of a broader team of automation specialists, Neil focuses purely on mastering n8n and helping others unlock its full potential.

Keep Reading

Scroll to Top