feat(stacks): add portainer agent stack template

This commit is contained in:
Anthony Lapenna
2018-05-17 17:09:47 +02:00
parent 8f1efec093
commit 2a0a9a4ba8
2 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
version: '3.2'
services:
agent:
image: portainer/agent
environment:
AGENT_CLUSTER_ADDR: tasks.agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- target: 9001
published: 9001
protocol: tcp
mode: host
networks:
- portainer_agent
deploy:
mode: global
networks:
portainer_agent:
driver: overlay

View File

@@ -695,6 +695,19 @@
], ],
"volumes": ["/data/contentbox/db", "/app/includes/shared/media"] "volumes": ["/data/contentbox/db", "/app/includes/shared/media"]
}, },
{
"type": "stack",
"title": "Portainer Agent",
"description": "Manage all the resources in your Swarm cluster",
"note": "The agent will be deployed globally inside your cluster and available on port 9001.",
"categories": ["portainer"],
"platform": "linux",
"logo": "https://portainer.io/images/logos/portainer.png",
"repository": {
"url": "https://github.com/portainer/templates",
"stackfile": "stacks/portainer-agent/docker-stack.yml"
}
},
{ {
"type": "stack", "type": "stack",
"title": "OpenFaaS", "title": "OpenFaaS",
@@ -718,8 +731,8 @@
"platform": "linux", "platform": "linux",
"logo": "https://portainer.io/images/logos/ironfunctions.png", "logo": "https://portainer.io/images/logos/ironfunctions.png",
"repository": { "repository": {
"url": "https://github.com/deviantony/ironfunctions_stack", "url": "https://github.com/portainer/templates",
"stackfile": "docker-stack.yml" "stackfile": "stacks/ironfunctions/docker-stack.yml"
} }
}, },
{ {