{
  "name": "Deploy Docker InfluxDB, API backend for WHMCS/WISECP",
  "nodes": [
    {
      "id": "b1c793ae-265c-420b-8cd1-8ecc180bfb52",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -2060,
        -320
      ]
    },
    {
      "id": "d93df9de-1c37-46ee-8bbf-77297a1b63d5",
      "name": "Parametrs",
      "type": "n8n-nodes-base.set",
      "position": [
        -2280,
        -320
      ]
    },
    {
      "id": "35e09115-77bc-48e4-b534-d6015162521f",
      "name": "API",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2600,
        -320
      ]
    },
    {
      "id": "bddedef2-c43f-4e7b-b599-13fb7d47d504",
      "name": "422-Invalid server domain",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -2100,
        0
      ]
    },
    {
      "id": "eedc340a-f599-4e65-91cc-299a9cc075e6",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        -240
      ]
    },
    {
      "id": "82ac9991-aabe-4ebc-8a0a-dc712e219abf",
      "name": "SSH",
      "type": "n8n-nodes-base.ssh",
      "position": [
        500,
        -240
      ]
    },
    {
      "id": "825591ef-4b1d-4e4d-84a0-75370d26bbfb",
      "name": "Container Actions",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1660,
        -600
      ]
    },
    {
      "id": "5dddba42-28bf-41b9-ac94-52cc35a753a6",
      "name": "Service Actions",
      "type": "n8n-nodes-base.switch",
      "position": [
        -800,
        -1160
      ]
    },
    {
      "id": "b50f9cca-87ec-4cc4-a4a0-6070746b25f2",
      "name": "API answer",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        820,
        0
      ]
    },
    {
      "id": "7e39251f-9a03-4800-b070-2bf2885c44be",
      "name": "Inspect",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        -980
      ]
    },
    {
      "id": "4f63a2e0-dc0d-4373-9441-a57ee8d9bfdf",
      "name": "Stat",
      "type": "n8n-nodes-base.set",
      "position": [
        -980,
        -880
      ]
    },
    {
      "id": "993286dd-8757-40a2-ac62-3e5ab5d1261f",
      "name": "Start",
      "type": "n8n-nodes-base.set",
      "position": [
        -1160,
        -620
      ]
    },
    {
      "id": "32fc208c-cd56-4db0-9a8f-766c52bae9f5",
      "name": "Stop",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        -520
      ]
    },
    {
      "id": "9b87a055-2949-4a53-94e9-9ae059ed4913",
      "name": "Test Connection1",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -1320
      ]
    },
    {
      "id": "2a2bafe1-ded2-4857-9853-e5ef75fab5d7",
      "name": "Deploy",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -1120
      ]
    },
    {
      "id": "cc74e942-766c-43f3-9789-1eccb139d58d",
      "name": "Suspend",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -960
      ]
    },
    {
      "id": "bc93158d-cab4-4161-aa34-f54905869eae",
      "name": "Terminated",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -620
      ]
    },
    {
      "id": "ab47d0f6-502b-43f6-acd1-547adb8c6bda",
      "name": "Unsuspend",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -800
      ]
    },
    {
      "id": "93a5ca68-9397-43f4-a277-64f98544a6e2",
      "name": "Mount Disk",
      "type": "n8n-nodes-base.set",
      "position": [
        -1160,
        -400
      ]
    },
    {
      "id": "99041aec-cc6b-4994-a185-316233261a11",
      "name": "Unmount Disk",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        -300
      ]
    },
    {
      "id": "64c83aad-dd98-4418-8a73-8cdf6fdf0580",
      "name": "Log",
      "type": "n8n-nodes-base.set",
      "position": [
        -840,
        -780
      ]
    },
    {
      "id": "77d2d93f-d006-493c-84ed-5e318ebacfcd",
      "name": "ChangePackage",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -460
      ]
    },
    {
      "id": "b6508dbe-809f-45c6-b182-e6aa148d467a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2640,
        -1280
      ],
      "parameters": {
        "width": 639,
        "height": 909,
        "content": "## 👋 Welcome to PUQ Docker InfluxDB deploy!\n## Template for InfluxDB: 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 dev"
      }
    },
    {
      "id": "eee5aa6b-b346-4341-aead-12715e55ee95",
      "name": "Deploy-docker-compose",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        -1260
      ]
    },
    {
      "id": "bfcb35da-1053-4eaa-8ed4-c270333dd28f",
      "name": "Version",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        240
      ]
    },
    {
      "id": "4cc9c309-0044-4c11-9cff-c1b43616d5f8",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -1680,
        -1120
      ]
    },
    {
      "id": "6ebe8bea-ff92-4e02-b683-36b15b1826f5",
      "name": "nginx",
      "type": "n8n-nodes-base.set",
      "position": [
        -1420,
        -1260
      ]
    },
    {
      "id": "5d1a92d8-1559-4d2f-837c-c1ed597cd531",
      "name": "Container Stat",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1620,
        -880
      ]
    },
    {
      "id": "297dd668-c6b4-47fd-9ed7-1ed7aeda83bd",
      "name": "GET ACL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1160,
        -200
      ]
    },
    {
      "id": "1fd4caf1-bc7c-4dd0-8a82-028f548611bf",
      "name": "SET ACL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1080,
        -40
      ]
    },
    {
      "id": "965d9170-c157-4a43-a13a-1c696908827f",
      "name": "GET NET",
      "type": "n8n-nodes-base.set",
      "position": [
        -1160,
        80
      ]
    },
    {
      "id": "75d4b504-5c6f-4337-bdd4-08c9a6198c16",
      "name": "InfluxDB",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1500,
        320
      ]
    },
    {
      "id": "df933a19-b866-4559-b32c-7d951ae75062",
      "name": "Change Password",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        440
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Container Stat",
            "type": "main",
            "index": 0
          },
          {
            "node": "Container Actions",
            "type": "main",
            "index": 0
          },
          {
            "node": "InfluxDB",
            "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
          }
        ]
      ]
    },
    "Start": {
      "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
          }
        ]
      ]
    },
    "InfluxDB": {
      "main": [
        [
          {
            "node": "Version",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Change Password",
            "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
          }
        ]
      ]
    },
    "Change Password": {
      "main": [
        [
          {
            "node": "SSH",
            "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
          }
        ]
      ]
    }
  }
}