Add webdis and grafana

This commit is contained in:
Tobias Reisinger 2022-03-09 13:45:02 +01:00
parent 2d279c5fa1
commit b84beb7bac
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 104 additions and 1 deletions

39
grafana/.env Normal file
View file

@ -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"

View file

@ -0,0 +1,11 @@
version: '3'
services:
grafana:
image: grafana/grafana
restart: always
volumes:
- ./data/:/var/lib/grafana/
user: "104"
ports:
- 3001:3000/tcp

View file

@ -1,5 +1,5 @@
DATABASE_URL=""
DATABASE_TYPE"postgresql"
DATABASE_TYPE="postgresql"
HASH_SALT=""
FORCE_SSL="1"
HOSTNAME="analytics.serguzim.me"

22
webdis/docker-compose.yml Normal file
View file

@ -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:

31
webdis/webis.json Normal file
View file

@ -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"
}