2022-05-09 07:47:54 +08:00
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"description": "AIO containers definition schema",
|
|
|
|
"minProperties": 1,
|
2022-12-31 06:49:54 +08:00
|
|
|
"required": ["aio_services_v1"],
|
2022-05-09 07:47:54 +08:00
|
|
|
"properties": {
|
2022-12-31 06:49:54 +08:00
|
|
|
"aio_services_v1": {
|
2022-05-09 07:47:54 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
2022-12-26 09:24:38 +08:00
|
|
|
"minProperties": 2,
|
|
|
|
"required": ["image", "container_name"],
|
2022-05-09 07:47:54 +08:00
|
|
|
"properties": {
|
2022-12-25 07:43:26 +08:00
|
|
|
"image": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2023-02-02 22:11:40 +08:00
|
|
|
"expose": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^([0-9]{1,5})$"
|
2023-02-02 22:11:40 +08:00
|
|
|
}
|
|
|
|
},
|
2023-03-06 18:36:36 +08:00
|
|
|
"cap_add": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[A-Z_]+$"
|
2023-03-06 18:36:36 +08:00
|
|
|
}
|
|
|
|
},
|
2022-12-25 07:39:22 +08:00
|
|
|
"depends_on": {
|
2022-05-09 07:47:54 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^nextcloud-aio-[a-z-]+$"
|
2022-05-09 07:47:54 +08:00
|
|
|
}
|
|
|
|
},
|
2022-12-25 07:55:54 +08:00
|
|
|
"display_name": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[A-Za-z ]+$"
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2022-12-25 07:48:24 +08:00
|
|
|
"environment": {
|
2022-05-09 07:47:54 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^.*=.*$",
|
|
|
|
"minlength": 1
|
2022-05-09 07:47:54 +08:00
|
|
|
}
|
|
|
|
},
|
2022-12-25 07:36:19 +08:00
|
|
|
"container_name": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^nextcloud-aio-[a-z-]+$"
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2022-12-25 08:40:37 +08:00
|
|
|
"internal_port": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
2023-05-02 01:06:13 +08:00
|
|
|
"pattern": "^(([0-9]{1,5})|host|(%[A-Z_]+%))$"
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2022-12-25 07:50:17 +08:00
|
|
|
"stop_grace_period": {
|
2022-05-09 07:47:54 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"ports": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2022-12-26 00:08:41 +08:00
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"minProperties": 3,
|
|
|
|
"properties": {
|
|
|
|
"ip_binding": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^(%[A-Z_]+%)?$"
|
2022-12-26 00:08:41 +08:00
|
|
|
},
|
|
|
|
"port_number": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^(%[A-Z_]+%)$"
|
2022-12-26 00:08:41 +08:00
|
|
|
},
|
|
|
|
"protocol": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
2023-05-02 01:06:13 +08:00
|
|
|
"pattern": "^(tcp|udp)$"
|
2022-12-26 00:08:41 +08:00
|
|
|
}
|
|
|
|
}
|
2022-05-09 07:47:54 +08:00
|
|
|
}
|
|
|
|
},
|
2022-12-25 07:52:01 +08:00
|
|
|
"restart": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^unless-stopped$"
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2023-03-29 16:57:44 +08:00
|
|
|
"shm_size": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2022-05-09 07:47:54 +08:00
|
|
|
"secrets": {
|
2022-12-25 09:45:32 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[A-Z_]+$"
|
2022-12-25 09:45:32 +08:00
|
|
|
}
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2023-01-03 09:01:03 +08:00
|
|
|
"devices": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^/dev/[a-z]+$"
|
2023-01-03 09:01:03 +08:00
|
|
|
}
|
|
|
|
},
|
2023-04-28 01:24:14 +08:00
|
|
|
"apparmor_unconfined": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-05-18 02:48:08 +08:00
|
|
|
"backup_volumes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^nextcloud_aio_[a-z_]+$"
|
|
|
|
}
|
|
|
|
},
|
2023-05-02 00:37:33 +08:00
|
|
|
"nextcloud_exec_commands": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
2023-05-31 06:21:17 +08:00
|
|
|
"pattern": "^(php /var/www/html/occ .*|echo .*)$"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"profiles": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[a-z-]+$"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"networks": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^nextcloud-aio$"
|
2023-05-02 00:37:33 +08:00
|
|
|
}
|
|
|
|
},
|
2023-05-31 22:46:19 +08:00
|
|
|
"read_only": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-08-10 22:41:47 +08:00
|
|
|
"init": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-06-19 19:04:39 +08:00
|
|
|
"tmpfs": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
2023-07-28 23:08:44 +08:00
|
|
|
"pattern": "^/[a-z/_0-9-:]+$"
|
2023-06-19 19:04:39 +08:00
|
|
|
}
|
|
|
|
},
|
2022-05-09 07:47:54 +08:00
|
|
|
"volumes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"minProperties": 3,
|
|
|
|
"properties": {
|
2022-12-31 05:56:37 +08:00
|
|
|
"destination": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
2023-05-02 01:06:13 +08:00
|
|
|
"pattern": "^((/[a-z_/.-]+)|(%[A-Z_]+%))$"
|
2022-05-09 07:47:54 +08:00
|
|
|
},
|
2022-12-31 05:56:37 +08:00
|
|
|
"source": {
|
2023-04-28 00:00:08 +08:00
|
|
|
"type": "string",
|
2023-05-18 02:48:08 +08:00
|
|
|
"pattern": "^((nextcloud_aio_[a-z_]+)|(%[A-Z_]+%))$"
|
|
|
|
},
|
2022-05-09 07:47:54 +08:00
|
|
|
"writeable": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|