added version and wrapper templates for portainer

This commit is contained in:
2025-11-26 16:10:54 -08:00
parent 0b70204f8a
commit 6f1e9bc903
2 changed files with 3307 additions and 3298 deletions
+7 -1
View File
@@ -139,7 +139,13 @@ def main():
templates.append(generate_template_object(item)) templates.append(generate_template_object(item))
OUTPUT_FILE.write_text(json.dumps(templates, indent=2)) # Wrap in Portainer top-level object
output_data = {
"version": "3",
"templates": templates
}
OUTPUT_FILE.write_text(json.dumps(output_data, indent=2))
print(f"Generated {OUTPUT_FILE} with templates for Docker Compose stacks.") print(f"Generated {OUTPUT_FILE} with templates for Docker Compose stacks.")
if __name__ == "__main__": if __name__ == "__main__":
+5 -2
View File
@@ -1,4 +1,6 @@
[ {
"version": "3",
"templates": [
{ {
"type": 1, "type": 1,
"title": "phpcontainer", "title": "phpcontainer",
@@ -3294,4 +3296,5 @@
}, },
"env": [] "env": []
} }
] ]
}