Compare commits

..

3 Commits

Author SHA1 Message Date
1919071f08 First commit for npg stack 2023-03-01 23:43:59 +01:00
ad3f8bc031 Modified .gitignore
The previous gitignore would also add service.env files, not supposed
to be in the repository, only *.template files.
2023-03-01 20:54:50 +01:00
a837eaf6aa First commit for protonmail-bridge 2023-03-01 10:58:41 +01:00
11 changed files with 152 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/**/.env
/**/*.env
/**/*.txt

View File

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=npg

View File

@ -0,0 +1,98 @@
---
x-logging: &default-logging
driver: local
options:
max-size: "1m"
max-file: "50"
x-opt-values: &volume-opt
driver_opts: &options
type: "nfs"
o: "addr=${IP},rw"
services:
# https://learn.netdata.cloud/docs/agent/packaging/docker
# https://learn.netdata.cloud/docs/agent/exporting/walkthrough
netdata:
image: netdata/netdata
container_name: netdata
hostname: netdata.domain.tld # set to fqdn of host
env_file:
- netdata.env
restart: unless-stopped
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
volumes:
- netdataconfig:/etc/netdata:ro
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- reverse-proxy
- npg
logging: *default-logging
prometheus:
image: prom/prometheus
container_name: prometheus
hostname: prometheus
env_file:
prometheus.env
volumes:
- prometheus:/etc/prometheus
networks:
- npg
logging: *default-logging
grafana:
image: grafana/grafana
container_name: grafana
env_file:
grafana.env
volumes:
- grafana:/var/lib/grafana
networks:
- npg
logging: *default-logging
# Can be substituted by a standard volume declaration if it's just a test
# environment or no nfs server is available
volumes:
netdataconfig:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path/netdata/netdataconfig"
netdatalib:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path/netdata/netdatalib"
netdatacache:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path/netdata/netdatacache"
prometheus:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path/prometheus/prometheus"
grafana:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path/grafana/grafana"
networks:
reverse-proxy:
name: rp_reverse-proxy
external: true
npg:

View File

@ -0,0 +1,3 @@
VIRTUAL_HOST="grafana.domain.tld"
VIRTUAL_PORT=3000
LETSENCRYPT_HOST="grafana.domain.tld"

View File

@ -0,0 +1,6 @@
VIRTUAL_HOST="netdata.domain.tld"
VIRTUAL_PORT=19999
LETSENCRYPT_HOST="netdata.domain.tld"
NETDATA_CLAIM_TOKEN=hOOww34Yc-6vYBYxRKBop6Ozbsf0B2WSaPBTsW_mbHuBYiHcGDVsvbqETz5SaevMvOVBK_4r7q6WwLZTTD3iwHy2T2X1NsRExqUWWUn3LQXDGYlvKKCynVRafuNT9xmH1cuQ0l8
NETDATA_CLAIM_URL=https://app.netdata.cloud
NETDATA_CLAIM_ROOMS=

View File

@ -0,0 +1,5 @@
# File that has to be put under /etc/netdata/go.d/nginx.conf to monitor
# nginx_status
jobs:
- name: local
url: http://nginx-proxy/nginx_status

View File

@ -0,0 +1,3 @@
VIRTUAL_HOST="prometheus.domain.tld"
VIRTUAL_PORT=9090
LETSENCRYPT_HOST="prometheus.domain.tld"

1
pmb/.env.template Normal file
View File

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=pmb

1
pmb/README.md Normal file
View File

@ -0,0 +1 @@

33
pmb/docker-compose.yml Normal file
View File

@ -0,0 +1,33 @@
x-logging:
&default-logging
driver: local
options:
max-size: "1m"
max-file: "50"
x-opt-values:
&volume-opt
driver_opts: &options
type: "nfs"
o: "addr=${IP},rw"
services:
protonmail-bridge:
image: shenxn/protonmail-bridge
container_name: protonmail-bridge
restart: always
volumes:
- protonmail:/root
networks:
- protonmail
logging: *default-logging
volumes:
protonmail:
<<: *volume-opt
driver_opts:
<<: *options
device: ":/mnt/path/protonmail/protonmail"
networks:
protonmail: