{
  "name": "Deploy Docker MinIO, API backend for WHMCS/WISECP",
  "nodes": [
    {
      "id": "d79fe295-a0b0-4871-8382-67d9af5d0d2c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -2060,
        -320
      ]
    },
    {
      "id": "52c088af-95ae-411f-b1fa-f50b8ea99b58",
      "name": "Parametrs",
      "type": "n8n-nodes-base.set",
      "position": [
        -2280,
        -320
      ]
    },
    {
      "id": "9814333d-a9c1-4787-aed1-116db9395b88",
      "name": "API",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2600,
        -320
      ]
    },
    {
      "id": "a3e0156c-8033-4829-ab57-06e3708a7a09",
      "name": "422-Invalid server domain",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -2100,
        0
      ]
    },
    {
      "id": "a5f410f8-ca52-4e85-b76f-651756c80de5",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        -240
      ]
    },
    {
      "id": "e162574f-c3ce-4fd0-8b31-d251ea360389",
      "name": "SSH",
      "type": "n8n-nodes-base.ssh",
      "position": [
        500,
        -240
      ]
    },
    {
      "id": "70f53357-5cdc-428c-876c-77036d6736cc",
      "name": "Container Actions",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1680,
        160
      ]
    },
    {
      "id": "901a657d-873c-4b92-9949-d03e73a5313c",
      "name": "Service Actions",
      "type": "n8n-nodes-base.switch",
      "position": [
        -900,
        -1300
      ]
    },
    {
      "id": "1c59a844-f4ef-422f-abbf-288a55e11934",
      "name": "API answer",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        820,
        0
      ]
    },
    {
      "id": "c2019d97-1012-4089-84c3-305308f8603f",
      "name": "Inspect",
      "type": "n8n-nodes-base.set",
      "position": [
        -1160,
        -380
      ]
    },
    {
      "id": "a274a2d1-2382-48a0-a94d-6ef89cd22a57",
      "name": "Stat",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        -240
      ]
    },
    {
      "id": "3e80ebbe-bb8e-4fec-ab20-ba69271a48f8",
      "name": "Start",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        140
      ]
    },
    {
      "id": "4e13ceea-a01f-438c-ba6f-27f55b88798b",
      "name": "Stop",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        240
      ]
    },
    {
      "id": "afa7a4e2-85a6-420b-9e33-30802e9cbb7b",
      "name": "Test Connection1",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -1320
      ]
    },
    {
      "id": "6c8261b4-f024-4b8e-a11c-1f2305e03e1d",
      "name": "Deploy",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -1120
      ]
    },
    {
      "id": "d2f48f02-1a75-445e-832b-f9bf1a4d4b71",
      "name": "Suspend",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -960
      ]
    },
    {
      "id": "87b7f7c2-7f7e-49e5-846c-3f92d436b5b6",
      "name": "Terminated",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -620
      ]
    },
    {
      "id": "610dc730-9a2f-4fbf-bbbe-ce31d1494422",
      "name": "Unsuspend",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -800
      ]
    },
    {
      "id": "8d6893c3-9597-43fe-bbec-ba3c55d2c220",
      "name": "Mount Disk",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        360
      ]
    },
    {
      "id": "1b2182c6-7080-4b09-9699-2ba7c3292913",
      "name": "Unmount Disk",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        460
      ]
    },
    {
      "id": "dd0cd3d9-876e-485c-94ed-f69e6f26c62b",
      "name": "Log",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        -100
      ]
    },
    {
      "id": "64e41e91-62b3-4346-874b-e952201fecb5",
      "name": "ChangePackage",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -440
      ]
    },
    {
      "id": "d7688118-55bb-4934-aac7-507bd3a3e956",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2640,
        -1280
      ],
      "parameters": {
        "width": 639,
        "height": 909,
        "content": "## 👋 Welcome to PUQ Docker MinIO deploy!\n## Template for MinIO: API Backend for WHMCS/WISECP by PUQcloud\n\nv.1\n\nThis is an n8n template that creates an API backend for the WHMCS/WISECP module developed"
      }
    },
    {
      "id": "e8b68657-ae60-4558-8ea0-768dba92fcba",
      "name": "Deploy-docker-compose",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        -1360
      ]
    },
    {
      "id": "938520b1-aae6-4fe7-ac8e-e888f0793c8a",
      "name": "Version",
      "type": "n8n-nodes-base.set",
      "position": [
        -1080,
        1300
      ]
    },
    {
      "id": "d83a8249-9ad9-4772-bb1b-5484ebeb4b81",
      "name": "Users",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        1460
      ]
    },
    {
      "id": "ba9b26be-31b6-47c9-85c1-719f346abc1a",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -1780,
        -1260
      ]
    },
    {
      "id": "c08cfbd4-ef9a-4430-8a03-41ae209a3c92",
      "name": "MinIO",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1680,
        1380
      ]
    },
    {
      "id": "d75c83ca-c106-4b96-9db7-9f3ef1e20453",
      "name": "nginx",
      "type": "n8n-nodes-base.set",
      "position": [
        -1420,
        -1360
      ]
    },
    {
      "id": "70c2cb4d-af9d-4003-8aaf-e5800580552b",
      "name": "Container Stat",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1680,
        -240
      ]
    },
    {
      "id": "0bb2aeeb-8279-4f13-827f-a6559ef805b1",
      "name": "GET ACL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        560
      ]
    },
    {
      "id": "9603bee0-de6f-46bf-97d4-f7a2a4d27514",
      "name": "SET ACL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        700
      ]
    },
    {
      "id": "325e6cfc-f28e-490e-84a0-d8153e1c9fc9",
      "name": "GET NET",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        840
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Container Stat",
            "type": "main",
            "index": 0
          },
          {
            "node": "Container Actions",
            "type": "main",
            "index": 0
          },
          {
            "node": "MinIO",
            "type": "main",
            "index": 0
          },
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "422-Invalid server domain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API": {
      "main": [
        [
          {
            "node": "Parametrs",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "nginx",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Service Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SSH": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stat": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stop": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "API answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MinIO": {
      "main": [
        [
          {
            "node": "Version",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Users",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Users": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "nginx": {
      "main": [
        [
          {
            "node": "Deploy-docker-compose",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deploy": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET ACL": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET NET": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Inspect": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SET ACL": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Suspend": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Version": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parametrs": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unsuspend": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mount Disk": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Terminated": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unmount Disk": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ChangePackage": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Container Stat": {
      "main": [
        [
          {
            "node": "Inspect",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Stat",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Service Actions": {
      "main": [
        [
          {
            "node": "Test Connection1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Deploy",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Suspend",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Unsuspend",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Terminated",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ChangePackage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test Connection1": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Container Actions": {
      "main": [
        [
          {
            "node": "Start",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Stop",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Mount Disk",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Unmount Disk",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "GET ACL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "SET ACL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "GET NET",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deploy-docker-compose": {
      "main": [
        [
          {
            "node": "Service Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}