forked from thelman/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (36 loc) · 964 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '2'
services:
netdata:
image: netdata/netdata:v1.19.0
restart: always
ports:
- 8080:19999
expose:
- "19999"
volumes:
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- netdata-etc:/etc/netdata
cap_add:
- SYS_PTRACE
security_opt:
- apparmor=unconfined
environment:
- VIRTUAL_PORT=19999
- DOCKER_HOST=proxy:2375
- PGID=999
- VIRTUALIZATION=kvm
proxy:
image: tecnativa/docker-socket-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1
volumes:
netdata-etc:
# Si necesitas usar autenticación, podés usar jwilder/nginx-proxy y crear un archivo htpasswd para proteger
# el VHOST de netdata
# https://github.com/nginx-proxy/nginx-proxy#basic-authentication-support