feat(stacks): add portainer agent stack template
This commit is contained in:
22
stacks/portainer-agent/docker-stack.yml
Normal file
22
stacks/portainer-agent/docker-stack.yml
Normal 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
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user