{
  "version": 5,
  "script": {
    "version": "0.1.0",
    "changeLog": "Auto-generated draft from TrueNAS ipfs 1.3.13"
  },
  "requirements": {
    "locations": ["ApplicationsPerformance"],
    "specifications": ["2CORE"],
    "permissions": ["READ_WRITE_LOCATIONS"],
    "ports": [30010, 30011, 30012]
  },
  "ensure_directories_exists": [
    {"path": "$LOCATION(ApplicationsPerformance)"},
    {"path": "$LOCATION(ApplicationsPerformance)/ipfs"},
    {
      "path": "$LOCATION(ApplicationsPerformance)/ipfs/staging",
      "owner": {"user": "apps"},
      "snapshot": {"id": "staging"}
    },
    {
      "path": "$LOCATION(ApplicationsPerformance)/ipfs/data",
      "owner": {"user": "apps"},
      "snapshot": {"id": "data"}
    }
  ],
  "app_values": {
    "storage": {
      "staging": "$HOST_PATH($LOCATION(ApplicationsPerformance)/ipfs/staging)",
      "data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/ipfs/data)"
    },
    "network": {
      "api_port": {"bind_mode": "published", "port_number": 30010},
      "swarm_port": {"bind_mode": "published", "port_number": 30011},
      "gateway_port": {"bind_mode": "published", "port_number": 30012}
    },
    "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
  }
}
