From b84beb7bac68ed9497b98af64b647e2ceb19bfa9 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 9 Mar 2022 13:45:02 +0100 Subject: [PATCH] Add webdis and grafana --- grafana/.env | 39 ++++++++++++++++++++++++++++++++++++++ grafana/docker-compose.yml | 11 +++++++++++ umami/.env | 2 +- webdis/docker-compose.yml | 22 +++++++++++++++++++++ webdis/webis.json | 31 ++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 grafana/.env create mode 100644 grafana/docker-compose.yml create mode 100644 webdis/docker-compose.yml create mode 100644 webdis/webis.json diff --git a/grafana/.env b/grafana/.env new file mode 100644 index 0000000..3077b0c --- /dev/null +++ b/grafana/.env @@ -0,0 +1,39 @@ +GF_DEFAULT_INSTANCE_NAME="graph.serguzim.me" +GF_SERVER_PROTOCOL="http" +GF_SERVER_DOMAIN="graph.serguzim.me" +GF_SERVER_ROOT_URL="https://graph.serguzim.me/" +GF_DATABASE_TYPE="postgres" +GF_DATABASE_HOST="db.serguzim.me" +GF_DATABASE_NAME="grafanadb" +GF_DATABASE_USER="grafana" +GF_DATABASE_PASSWORD="" +GF_DATABASE_SSL_MODE="verify-full" +GF_SECURITY_ADMIN_USER="" +GF_SECURITY_SECRET_KEY="" +GF_SECURITY_COOKIE_SECURE="true" +GF_SECURITY_COOKIE_SAMESITE="strict" +GF_SECURITY_ALLOW_EMBEDDING="true" +GF_USERS_ALLOW_SIGN_UP="false" +GF_AUTH_DISABLE_LOGIN_FORM="true" +GF_SIGNOUT_REDIRECT_URL="https://graph.serguzim.me" +GF_OAUTH_AUTO_LOGIN="true" +GF_AUTH_ANONYMOUS_ENABLED="true" +GF_AUTH_ANONYMOUS_ORG_NAME="Main Org." +GF_AUTH_ANONYMOUS_ORG_ROLE="Viewer" +GF_AUTH_GENERIC_OAUTH_ENABLED="true" +GF_AUTH_GENERIC_OAUTH_NAME="auth.serguzim.me" +GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP="true" +GF_AUTH_GENERIC_OAUTH_CLIENT_ID="" +GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET="" +GF_AUTH_GENERIC_OAUTH_SCOPES="openid profile email" +GF_AUTH_GENERIC_OAUTH_AUTH_URL="https://auth.serguzim.me/application/o/authorize/" +GF_AUTH_GENERIC_OAUTH_TOKEN_URL="https://auth.serguzim.me/application/o/token/" +GF_AUTH_GENERIC_OAUTH_API_URL="https://auth.serguzim.me/application/o/userinfo/" +GF_AUTH_SIGNOUT_REDIRECT_URL="https://auth.serguzim.me/if/session-end/graph_serguzim_me/" +GF_AUTH_OAUTH_AUTO_LOGIN="true" +GF_SMTP_ENABLED="true" +GF_SMTP_HOST="mail.serguzim.me:587" +GF_SMTP_USER="graph@serguzim.me" +GF_SMTP_PASSWORD="" +GF_SMTP_FROM_ADDRESS="graph@serguzim.me" +GF_SMTP_FROM_NAME="Grafana" diff --git a/grafana/docker-compose.yml b/grafana/docker-compose.yml new file mode 100644 index 0000000..8647dbf --- /dev/null +++ b/grafana/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3' + +services: + grafana: + image: grafana/grafana + restart: always + volumes: + - ./data/:/var/lib/grafana/ + user: "104" + ports: + - 3001:3000/tcp diff --git a/umami/.env b/umami/.env index 485dd34..53bfcca 100644 --- a/umami/.env +++ b/umami/.env @@ -1,5 +1,5 @@ DATABASE_URL="" -DATABASE_TYPE"postgresql" +DATABASE_TYPE="postgresql" HASH_SALT="" FORCE_SSL="1" HOSTNAME="analytics.serguzim.me" diff --git a/webdis/docker-compose.yml b/webdis/docker-compose.yml new file mode 100644 index 0000000..bac78d5 --- /dev/null +++ b/webdis/docker-compose.yml @@ -0,0 +1,22 @@ +services: + webdis: + image: nicolas/webdis:latest + restart: always + command: /usr/local/bin/webdis /config/webdis.json + volumes: + - ./:/config + networks: + - shared + depends_on: + - redis + ports: + - "127.0.0.1:7379:7379" + + redis: + image: redis:6.2.6 + restart: always + networks: + - shared + +networks: + shared: diff --git a/webdis/webis.json b/webdis/webis.json new file mode 100644 index 0000000..25d95ac --- /dev/null +++ b/webdis/webis.json @@ -0,0 +1,31 @@ +{ + "redis_host": "redis", + + "redis_port": 6379, + "redis_auth": null, + + "http_host": "0.0.0.0", + "http_port": 7379, + + "threads": 5, + "pool_size": 20, + + "daemonize": false, + "websockets": false, + + "database": 0, + + "acl": [ + { + "disabled": ["DEBUG"] + }, + + { + "http_basic_auth": "user:password", + "enabled": ["DEBUG"] + } + ], + + "verbosity": 4, + "logfile": "/dev/stderr" +}