mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
added version and wrapper templates for portainer
This commit is contained in:
@@ -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
@@ -1,4 +1,6 @@
|
|||||||
[
|
{
|
||||||
|
"version": "3",
|
||||||
|
"templates": [
|
||||||
{
|
{
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"title": "phpcontainer",
|
"title": "phpcontainer",
|
||||||
@@ -3294,4 +3296,5 @@
|
|||||||
},
|
},
|
||||||
"env": []
|
"env": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user