added glances
parent
e16c8cc34a
commit
074eef4a7a
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
glances_image: nicolargo/glances
|
||||||
|
glances_tag: latest-alpine
|
||||||
|
glances_expose_port: 8083
|
||||||
|
glances_portainer_stack_name: glances
|
||||||
|
glances_container_name: glances
|
||||||
|
glances_restart_policy: unless-stopped
|
||||||
|
glances_pid: host
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
- name: "Glances | Update Portainer."
|
||||||
|
chatton.portainer.portainer_stack:
|
||||||
|
username: admin
|
||||||
|
password: '{{ portainer.password }}'
|
||||||
|
base_url: '{{ portainer_base_url }}'
|
||||||
|
stack_name: '{{ glances_portainer_stack_name }}'
|
||||||
|
endpoint_id: '{{ portainer_endpoint }}'
|
||||||
|
state: present
|
||||||
|
definition:
|
||||||
|
services:
|
||||||
|
glances:
|
||||||
|
image: "{{ glances_image }}:{{ glances_tag }}"
|
||||||
|
restart: "{{ glances_restart_policy }}"
|
||||||
|
pid: "{{ glances_pid }}"
|
||||||
|
ports:
|
||||||
|
- "{{ glances_expose_port}}:61208"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
- "GLANCES_OPT=-w"
|
||||||
@ -1,52 +0,0 @@
|
|||||||
---
|
|
||||||
version: '3.5'
|
|
||||||
services:
|
|
||||||
{% if template_vars.dashdot %}
|
|
||||||
dash-dot:
|
|
||||||
container_name: dashdot
|
|
||||||
image: mauricenino/dashdot:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
privileged: true
|
|
||||||
ports:
|
|
||||||
- '3010:3001'
|
|
||||||
volumes:
|
|
||||||
- /:/mnt/host:ro
|
|
||||||
{% endif %}
|
|
||||||
{% if template_vars.dashy %}
|
|
||||||
dashy:
|
|
||||||
container_name: dashy
|
|
||||||
image: lissy93/dashy
|
|
||||||
volumes:
|
|
||||||
- /etc/config/dashy/dashy-config.yml:/app/public/conf.yml
|
|
||||||
|
|
||||||
ports:
|
|
||||||
- 4000:80
|
|
||||||
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
- UID=1000
|
|
||||||
- GID=1000
|
|
||||||
|
|
||||||
# Specify restart policy
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
# Configure healthchecks
|
|
||||||
healthcheck:
|
|
||||||
test: ['CMD', 'node', '/app/services/healthcheck']
|
|
||||||
interval: 1m30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
start_period: 40s
|
|
||||||
{% endif %}
|
|
||||||
{% if template_vars.glances %}
|
|
||||||
glances:
|
|
||||||
image: nicolargo/glances:latest-alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
pid: host
|
|
||||||
ports:
|
|
||||||
- "8083:61208"
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
environment:
|
|
||||||
- "GLANCES_OPT=-w"
|
|
||||||
{% endif %}
|
|
||||||
Loading…
Reference in New Issue