feat(templates): add a template for Sematext Docker Agent (#87)
This commit is contained in:
committed by
Anthony Lapenna
parent
86a8e5ce15
commit
d839d519f9
@@ -31,3 +31,4 @@ Documentation is available [ReadTheDocs](http://portainer.readthedocs.io/en/late
|
||||
* Jenkins (based on `jenkins:latest`)
|
||||
* Redmine (based on `redmine:latest`)
|
||||
* Odoo (based on `odoo:latest`)
|
||||
* Sematext Docker Agent (based on `sematext/sematext-agent-docker:latest`)
|
||||
|
||||
16
stacks/sematext-agent-docker/docker-stack.yml
Normal file
16
stacks/sematext-agent-docker/docker-stack.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
version: '3.2'
|
||||
services:
|
||||
sematext-agent-docker:
|
||||
image: sematext/sematext-agent-docker
|
||||
deploy:
|
||||
mode: global
|
||||
restart_policy:
|
||||
condition: any
|
||||
environment:
|
||||
- LOGSENE_TOKEN=$LOGSENE_TOKEN
|
||||
- SPM_TOKEN=$SPM_TOKEN
|
||||
restart: always
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /var/run/docker.sock
|
||||
target: var/run/docker.sock
|
||||
@@ -727,5 +727,59 @@
|
||||
"description": "Password used by the MySQL root user."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sematext Docker Agent",
|
||||
"type": "stack",
|
||||
"categories": ["Log Management", "Monitoring"],
|
||||
"description": "Collect logs, metrics and docker events",
|
||||
"logo": "https://sematext.com/wp-content/uploads/2016/08/octi.png",
|
||||
"platform": "linux",
|
||||
"repository": {
|
||||
"url": "https://github.com/portainer/templates",
|
||||
"stackfile": "stacks/sematext-agent-docker/docker-stack.yml"
|
||||
},
|
||||
"env": [
|
||||
{
|
||||
"name": "LOGSENE_TOKEN",
|
||||
"label": "Logs token"
|
||||
},
|
||||
{
|
||||
"name": "SPM_TOKEN",
|
||||
"label": "SPM monitoring token"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"container": "/var/run/docker.sock",
|
||||
"bind": "/var/run/docker.sock"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Sematext Docker Agent",
|
||||
"type": "container",
|
||||
"description": "Collect logs, metrics and docker events",
|
||||
"logo": "https://sematext.com/wp-content/uploads/2016/08/octi.png",
|
||||
"image": "sematext/sematext-agent-docker:latest",
|
||||
"name": "sematext-agent",
|
||||
"platform": "linux",
|
||||
"privileged": true,
|
||||
"env": [
|
||||
{
|
||||
"name": "LOGSENE_TOKEN",
|
||||
"label": "Logs token"
|
||||
},
|
||||
{
|
||||
"name": "SPM_TOKEN",
|
||||
"label": "SPM monitoring token"
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"container": "/var/run/docker.sock",
|
||||
"bind": "/var/run/docker.sock"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user