{
  "name": "Deploy Docker Immich, API backend for WHMCS/WISECP",
  "nodes": [
    {
      "id": "4831f6e3-50ba-40e8-a58d-948b2aa30d9e",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -2060,
        -320
      ]
    },
    {
      "id": "d71b72fb-c9af-4de0-8731-010031c1364c",
      "name": "Parametrs",
      "type": "n8n-nodes-base.set",
      "position": [
        -2280,
        -320
      ]
    },
    {
      "id": "0b195ac8-9eaa-4804-955c-713060806dfe",
      "name": "API",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2600,
        -320
      ]
    },
    {
      "id": "d47c8d61-4c75-45d9-9424-bec7ec9577c3",
      "name": "422-Invalid server domain",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -2100,
        0
      ]
    },
    {
      "id": "9a9bb067-c75a-483a-a248-e34012dec1bc",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        -240
      ]
    },
    {
      "id": "c628384c-d101-485f-9df6-9bbaeeac74aa",
      "name": "SSH",
      "type": "n8n-nodes-base.ssh",
      "position": [
        500,
        -240
      ]
    },
    {
      "id": "d7659a09-4ac5-49aa-bc0a-09a1a6e1e82e",
      "name": "Container Actions",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1680,
        160
      ]
    },
    {
      "id": "d641a4ff-fafb-4ad1-9ced-dc1037c95eb9",
      "name": "Service Actions",
      "type": "n8n-nodes-base.switch",
      "position": [
        -900,
        -1300
      ]
    },
    {
      "id": "6a494672-a498-4aaf-96a3-07c95376d422",
      "name": "API answer",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        820,
        0
      ]
    },
    {
      "id": "ca615470-af60-4f52-b7ca-3aefc3308dbc",
      "name": "Inspect",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        -580
      ]
    },
    {
      "id": "5f4a6163-d4dc-45f3-97ad-1c36297c6f0c",
      "name": "Stat",
      "type": "n8n-nodes-base.set",
      "position": [
        -980,
        -480
      ]
    },
    {
      "id": "45dbb5b3-24e2-4b4f-bab4-4d4d6784e2d5",
      "name": "Start",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        140
      ]
    },
    {
      "id": "52ecdeda-eaf0-40f0-a0df-2cab5848bc3f",
      "name": "Stop",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        240
      ]
    },
    {
      "id": "8a552039-fefd-439e-97e7-412d8eab5486",
      "name": "Test Connection1",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -1320
      ]
    },
    {
      "id": "23195584-afb7-4a78-92a5-2433b3887888",
      "name": "Deploy",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -1120
      ]
    },
    {
      "id": "10eda6b6-4d9e-4725-a1fb-53196efc0727",
      "name": "Suspend",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -960
      ]
    },
    {
      "id": "4a3958f5-f4bb-4079-a56e-08d3a0047cb2",
      "name": "Terminated",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -620
      ]
    },
    {
      "id": "48111c3c-6d9d-46e0-8c65-19ec818ccec0",
      "name": "Unsuspend",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -800
      ]
    },
    {
      "id": "7d0852f4-6fae-40cb-a2a3-a9d3b6ec3ae7",
      "name": "Mount Disk",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        360
      ]
    },
    {
      "id": "659022ef-b3c2-4785-b22c-c6f26f5af400",
      "name": "Unmount Disk",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        460
      ]
    },
    {
      "id": "bb2283d3-792f-43e3-93d2-b3469979ac14",
      "name": "Log",
      "type": "n8n-nodes-base.set",
      "position": [
        -840,
        -380
      ]
    },
    {
      "id": "3a49cc69-9ec6-47a9-a070-4f763bc29189",
      "name": "ChangePackage",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        -440
      ]
    },
    {
      "id": "4d8352f8-c78c-4450-beb4-70260285928d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2640,
        -1280
      ],
      "parameters": {
        "width": 639,
        "height": 909,
        "content": "## 👋 Welcome to PUQ Docker Immich deploy!\n## Template for Immich: 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 develop"
      }
    },
    {
      "id": "e403bcab-056e-48d6-8b61-0fb9a3871dc2",
      "name": "Deploy-docker-compose",
      "type": "n8n-nodes-base.set",
      "position": [
        -1240,
        -1400
      ]
    },
    {
      "id": "991b6d61-6d73-4df8-ab1d-31e53d945a8a",
      "name": "Version",
      "type": "n8n-nodes-base.set",
      "position": [
        -1080,
        1300
      ]
    },
    {
      "id": "97c4026f-f14f-4c06-b676-fc5ea47d7fff",
      "name": "Users",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        1460
      ]
    },
    {
      "id": "979eebfb-47f7-4250-9a6a-d87f78682686",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -1780,
        -1260
      ]
    },
    {
      "id": "5ae1c86d-ca50-4db5-8fb3-4e8bcf70b482",
      "name": "nginx",
      "type": "n8n-nodes-base.set",
      "position": [
        -1520,
        -1400
      ]
    },
    {
      "id": "92968208-7eb5-4138-bd11-d7ae2f83e6a8",
      "name": "Container Stat",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1620,
        -480
      ]
    },
    {
      "id": "8889e19f-580a-4358-a423-3b6b42bdb970",
      "name": "GET ACL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        560
      ]
    },
    {
      "id": "3f07ea30-20e6-475e-87a1-c17b4ebf9938",
      "name": "SET ACL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1060,
        700
      ]
    },
    {
      "id": "3ed565af-3349-4078-a100-80e795d8ce43",
      "name": "GET NET",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        840
      ]
    },
    {
      "id": "5be9a4c6-1eb5-4bd4-b802-f820c90a53a4",
      "name": "Dependent containers Stat",
      "type": "n8n-nodes-base.set",
      "position": [
        -1100,
        -260
      ]
    },
    {
      "id": "dd2d7265-3b13-468b-b80b-e769572c7d26",
      "name": "Change Password",
      "type": "n8n-nodes-base.set",
      "position": [
        -1140,
        1660
      ]
    },
    {
      "id": "58598b7a-20cb-4643-b7fb-db4b27fbfdec",
      "name": "Immich",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1680,
        1380
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Container Stat",
            "type": "main",
            "index": 0
          },
          {
            "node": "Container Actions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Immich",
            "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
          }
        ]
      ]
    },
    "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
          }
        ]
      ]
    },
    "Immich": {
      "main": [
        [
          {
            "node": "Version",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Users",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Change Password",
            "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
          }
        ],
        [
          {
            "node": "Dependent containers Stat",
            "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
          }
        ]
      ]
    },
    "Dependent containers Stat": {
      "main": [
        [
          {
            "node": "SSH",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}