From 76615896d9f8ce02d08fa0e6f72b9d5a79046541 Mon Sep 17 00:00:00 2001 From: Deepika J Date: Thu, 28 Apr 2022 11:56:36 +0000 Subject: [PATCH] Update 'template.json' --- template.json | 63 +++++++++++++-------------------------------------- 1 file changed, 16 insertions(+), 47 deletions(-) diff --git a/template.json b/template.json index 5e01a89..6cb7c2f 100644 --- a/template.json +++ b/template.json @@ -1,52 +1,21 @@ { - "version": "2", - "templates": [ - { - "type": 1, - "title": "Registry", - "description": "Docker image registry", - "categories": ["docker"], - "platform": "linux", - "logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/registry.png", - "image": "registry:latest", - "ports": ["5000/tcp"], + "version": "3", + "services": { + "portainer": { + "image": "portainer/portainer-ce:latest", + "container_name": "portainer", + "restart": "unless-stopped", + "security_opt": [ + "no-new-privileges:true" + ], "volumes": [ - { - "container": "/var/lib/registry" - } - ] - }, - { - "type": 1, - "title": "Ubuntu", - "description": "Debian-based Linux operating system", - "categories": ["operating-system"], - "platform": "linux", - "logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/ubuntu.png", - "image": "ubuntu:latest", - "interactive": true, - "command": "/bin/bash" - }, - { - "type": 3, - "title": "FDO", - "description": "FDO", - "platform": "linux", - "logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/intel.png", - "repository": { - "url": "https://github.com/portainer/templates", - "stackfile": "stacks/fdo/docker-stack.yml" - }, - "env": [ - { - "name": "owner_api_user", - "label": "API Username" - }, - { - "name": "owner_api_password", - "label": "API Password" - } + "/etc/localtime:/etc/localtime:ro", + "/var/run/docker.sock:/var/run/docker.sock:ro", + "./portainer-data:/data" + ], + "ports": [ + "9000:9000" ] } - ] + } } \ No newline at end of file