forked from data.coop/ansible
37 lines
909 B
Plaintext
37 lines
909 B
Plaintext
|
# vim: ft=yaml.docker-compose
|
||
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
app:
|
||
|
image: netdata/netdata:{{ services.netdata.version }}
|
||
|
restart: unless-stopped
|
||
|
hostname: hevonen.servers.{{ base_domain }}
|
||
|
volumes:
|
||
|
- "/proc:/host/proc:ro"
|
||
|
- "/sys:/host/sys:ro"
|
||
|
- "/etc/os-release:/host/etc/os-release:ro"
|
||
|
networks:
|
||
|
- default
|
||
|
- external_services
|
||
|
environment:
|
||
|
VIRTUAL_HOST : "{{ services.netdata.domain }}"
|
||
|
LETSENCRYPT_HOST: "{{ services.netdata.domain }}"
|
||
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
||
|
PGID: "999"
|
||
|
DOCKER_HOST: "socket_proxy:2375"
|
||
|
cap_add:
|
||
|
- SYS_PTRACE
|
||
|
security_opt:
|
||
|
- apparmor:unconfined
|
||
|
|
||
|
socket_proxy:
|
||
|
image: tecnativa/docker-socket-proxy:latest
|
||
|
volumes:
|
||
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||
|
environment:
|
||
|
CONTAINERS: 1
|
||
|
|
||
|
networks:
|
||
|
external_services:
|
||
|
external: true
|