Add netdata as docker container

This commit is contained in:
Jesper Hess 2019-02-28 08:31:28 +01:00
parent 53046bb85f
commit eb36b822b3
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F
3 changed files with 30 additions and 1 deletions

View file

@ -19,6 +19,7 @@
- matrix_riot - matrix_riot
- privatebin - privatebin
- codimd - codimd
- netdata
smtp_host: postfix smtp_host: postfix
smtp_port: 587 smtp_port: 587

View file

@ -31,4 +31,8 @@ privatebin:
codimd: codimd:
domain: "pad.{{ base_domain }}" domain: "pad.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/codimd" volume_folder: "{{ volume_root_folder }}/codimd"
netdata:
domain: "netdata.{{ base_domain }}"

View file

@ -0,0 +1,24 @@
---
- name: setup netdata docker container for system monitoring
docker_container:
name: netdata
image: netdata/netdata
hostname: "{{ netdata.domain }}"
capabilities:
- SYS_PTRACE
security_opts:
- apparmor:unconfined
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- name: external_services
env:
VIRTUAL_HOST : "{{ netdata.domain }}"
LETSENCRYPT_HOST: "{{ netdata.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
PGID: "999"