Remove invoiceninja, optimize monitoring
This commit is contained in:
parent
d69f285d04
commit
19aa0b6a55
|
@ -1,50 +1,50 @@
|
||||||
services:
|
services:
|
||||||
invoicenginx:
|
# invoicenginx:
|
||||||
container_name: invoice_nginx
|
# container_name: invoice_nginx
|
||||||
image: nginx:latest
|
# image: nginx:latest
|
||||||
restart: on-failure
|
# restart: on-failure
|
||||||
volumes:
|
# volumes:
|
||||||
- $CONFIG/invoiceninja/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
|
# - $CONFIG/invoiceninja/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
|
||||||
- $DATA/invoiceninja/public:/var/www/app/public:ro
|
# - $DATA/invoiceninja/public:/var/www/app/public:ro
|
||||||
environment:
|
# environment:
|
||||||
- TRUSTED_PROXIES='*'
|
# - TRUSTED_PROXIES='*'
|
||||||
depends_on:
|
# depends_on:
|
||||||
- invoiceninja
|
# - invoiceninja
|
||||||
networks:
|
# networks:
|
||||||
- invoice
|
# - invoice
|
||||||
- external
|
# - external
|
||||||
#labels:
|
# #labels:
|
||||||
#- "traefik.enable=true"
|
# #- "traefik.enable=true"
|
||||||
#- "traefik.http.routers.invoice.rule=Host(`invoice.bhasher.com`)"
|
# #- "traefik.http.routers.invoice.rule=Host(`invoice.bhasher.com`)"
|
||||||
#- "traefik.http.services.invoice.loadbalancer.server.port=80"
|
# #- "traefik.http.services.invoice.loadbalancer.server.port=80"
|
||||||
#- "traefik.http.routers.invoice.tls=true"
|
# #- "traefik.http.routers.invoice.tls=true"
|
||||||
#- "traefik.http.routers.invoice.tls.certresolver=http"
|
# #- "traefik.http.routers.invoice.tls.certresolver=http"
|
||||||
#- "traefik.http.routers.invoice.entrypoints=internalsecure"
|
# #- "traefik.http.routers.invoice.entrypoints=internalsecure"
|
||||||
|
#
|
||||||
invoiceninja:
|
# invoiceninja:
|
||||||
image: invoiceninja/invoiceninja:5
|
# image: invoiceninja/invoiceninja:5
|
||||||
container_name: invoice_ninja
|
# container_name: invoice_ninja
|
||||||
environment:
|
# environment:
|
||||||
- APP_URL=https://invoice.bhasher.com
|
# - APP_URL=https://invoice.bhasher.com
|
||||||
- APP_KEY=${INVOICENINJA_APIKEY}
|
# - APP_KEY=${INVOICENINJA_APIKEY}
|
||||||
- REQUIRE_HTTPS=true
|
# - REQUIRE_HTTPS=true
|
||||||
- PHANTOMJS_PDF_GENERATION=false
|
# - PHANTOMJS_PDF_GENERATION=false
|
||||||
- PDF_GENERATOR=snappdf
|
# - PDF_GENERATOR=snappdf
|
||||||
- QUEUE_CONNECTION=database
|
# - QUEUE_CONNECTION=database
|
||||||
- DB_HOST=mariadb
|
# - DB_HOST=mariadb
|
||||||
- DB_DATABASE=invoiceninja
|
# - DB_DATABASE=invoiceninja
|
||||||
- DB_USERNAME=root
|
# - DB_USERNAME=root
|
||||||
- DB_PASSWORD=${MARIADB_ROOT}
|
# - DB_PASSWORD=${MARIADB_ROOT}
|
||||||
- IN_USER_EMAIL=invoice@bhasher.com
|
# - IN_USER_EMAIL=invoice@bhasher.com
|
||||||
- IN_PASSWORD=${INVOICENINJA_PASSWORD}
|
# - IN_PASSWORD=${INVOICENINJA_PASSWORD}
|
||||||
- TRUSTED_PROXIES='*'
|
# - TRUSTED_PROXIES='*'
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
volumes:
|
# volumes:
|
||||||
- $DATA/invoiceninja/public:/var/www/app/public:rw
|
# - $DATA/invoiceninja/public:/var/www/app/public:rw
|
||||||
- $DATA/invoiceninja/storage:/var/www/app/storage:rw
|
# - $DATA/invoiceninja/storage:/var/www/app/storage:rw
|
||||||
networks:
|
# networks:
|
||||||
- invoice
|
# - invoice
|
||||||
- storage
|
# - storage
|
||||||
|
|
||||||
invoiceplane:
|
invoiceplane:
|
||||||
container_name: invoiceplane
|
container_name: invoiceplane
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
global:
|
global:
|
||||||
scrape_interval: 30s # By default, scrape targets every 15 seconds.
|
scrape_interval: 60s # By default, scrape targets every 15 seconds.
|
||||||
|
|
||||||
# Attach these labels to any time series or alerts when communicating with
|
# Attach these labels to any time series or alerts when communicating with
|
||||||
# external systems (federation, remote storage, Alertmanager).
|
# external systems (federation, remote storage, Alertmanager).
|
||||||
|
|
|
@ -14,12 +14,6 @@ services:
|
||||||
- COMPRESSION=lz4
|
- COMPRESSION=lz4
|
||||||
- PRUNE=1
|
- PRUNE=1
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
profiles:
|
||||||
|
- dnr
|
||||||
|
|
||||||
cron:
|
|
||||||
container_name: cron-scheduling
|
|
||||||
image: alpine:latest
|
|
||||||
volumes:
|
|
||||||
- ./config/cron:/etc/cron.d:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
command: crond -f
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
|
@ -75,8 +75,9 @@ services:
|
||||||
- /var/lib/docker/:/var/lib/docker:ro
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
restart: always
|
restart: always
|
||||||
command:
|
command:
|
||||||
- "--housekeeping_interval=30s"
|
- "--housekeeping_interval=60s"
|
||||||
- "--docker_only=true"
|
- "--docker_only=true"
|
||||||
|
- "--store_container_labels=false"
|
||||||
- "--disable_metrics=percpu,sched,tcp,udp,disk,diskIO,hugetlb,referenced_memory,cpu_topology,resctrl"
|
- "--disable_metrics=percpu,sched,tcp,udp,disk,diskIO,hugetlb,referenced_memory,cpu_topology,resctrl"
|
||||||
networks:
|
networks:
|
||||||
- monitoring
|
- monitoring
|
||||||
|
@ -99,7 +100,7 @@ services:
|
||||||
- '--path.rootfs=/host'
|
- '--path.rootfs=/host'
|
||||||
- '--path.procfs=/host/proc'
|
- '--path.procfs=/host/proc'
|
||||||
- '--path.sysfs=/host/sys'
|
- '--path.sysfs=/host/sys'
|
||||||
- --collector.filesystem.ignored-mount-points
|
- '--collector.filesystem.ignored-mount-points'
|
||||||
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
|
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue