Infrastructure10 min

Docker

Container runtime for running n8n, PostgreSQL, and other services locally or on a server.

Container runtime for running n8n, PostgreSQL, and other services locally or on a server.

Quick Setup

  1. Install Docker Engine following the official docs for your OS
  2. Install Docker Compose (included with Docker Desktop; on Linux, install via the compose plugin)
  3. Verify both are working:
    docker --version
    docker compose version
    

Configuration Notes

  • All nxsi.io infrastructure tutorials use Docker Compose. Individual docker run commands are fine for quick tests, but Compose files are easier to version control and reproduce.
  • Linux users: Add your user to the docker group (sudo usermod -aG docker $USER) to avoid prefixing every command with sudo. Log out and back in for the group change to take effect.
  • Docker Desktop (Mac/Windows) includes Compose out of the box. On Linux servers, install the docker-compose-plugin package.