Add Grafana, Influxdb

This commit is contained in:
Dustin Brunner 2021-03-20 12:49:44 +01:00
parent 4ea086fb00
commit 679d9c9e1c
5 changed files with 50 additions and 6 deletions

View File

@ -38,6 +38,8 @@ docker-compose up -d
| lychee | web photo gallery | | lychee | web photo gallery |
| piwigo | web photo gallery <- Best one in my Opinion | | piwigo | web photo gallery <- Best one in my Opinion |
| picapport | web photo gallery | | picapport | web photo gallery |
| Grafana | Graphical Interface for databases |
| Influxdb | time series database server |
<br><br> <br><br>
# Sources # Sources

View File

@ -14,7 +14,7 @@ services:
- DB_HOST=db:3306 - DB_HOST=db:3306
- DB_NAME=gitea - DB_NAME=gitea
- DB_USER=gitea - DB_USER=gitea
- DB_PASSWD=123456 - DB_PASSWD=changeme
- APP_NAME=My_Git_Server - APP_NAME=My_Git_Server
- DISABLE_SSH=true - DISABLE_SSH=true
- DISABLE_REGISTRATION=true - DISABLE_REGISTRATION=true
@ -36,9 +36,9 @@ services:
image: mysql:5.7 image: mysql:5.7
restart: always restart: always
environment: environment:
- MYSQL_ROOT_PASSWORD=123456 - MYSQL_ROOT_PASSWORD=changeme
- MYSQL_USER=gitea - MYSQL_USER=gitea
- MYSQL_PASSWORD=123456 - MYSQL_PASSWORD=changeme
- MYSQL_DATABASE=gitea - MYSQL_DATABASE=gitea
networks: networks:
- gitea - gitea

View File

@ -0,0 +1,22 @@
# If after the Start of the Container the logs say: "You may have issues with file permissions"
# Change the wirte permissions for the ./grafana and ./grafana_ext folder using: "chown 472 ./grafana"
# or see https://community.grafana.com/t/new-docker-install-with-persistent-storage-permission-problem/10896
version: '2'
services:
grafana:
image: grafana/grafana
restart: unless-stopped
ports:
- '96:3000'
volumes:
- ./grafana:/var/lib/grafana
#- ./grafana_etc:/etc/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=changeme
user: "root"

View File

@ -7,10 +7,10 @@ services:
volumes: volumes:
- ./db_config:/config - ./db_config:/config
environment: environment:
- MYSQL_ROOT_PASSWORD=123456 - MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=hedgedoc - MYSQL_DATABASE=hedgedoc
- MYSQL_USER=hedgedoc - MYSQL_USER=hedgedoc
- MYSQL_PASSWORD=123456 - MYSQL_PASSWORD=changeme
- PGID=0 - PGID=0
- PUID=0 - PUID=0
- TZ=Europe/Berlin - TZ=Europe/Berlin
@ -25,7 +25,7 @@ services:
environment: environment:
- DB_HOST=mariadb - DB_HOST=mariadb
- DB_USER=hedgedoc - DB_USER=hedgedoc
- DB_PASS=123456 - DB_PASS=changeme
- DB_NAME=hedgedoc - DB_NAME=hedgedoc
- DB_PORT=3306 - DB_PORT=3306
- PGID=0 - PGID=0

View File

@ -0,0 +1,20 @@
version: '2'
services:
influxdb:
image: influxdb:latest
restart: unless-stopped
ports:
- '8086:8086'
volumes:
- ./influxdb:/var/lib/influxdb2
- ./config:/etc/influxdb2
environment:
- INFLUXDB_DB=DBNAME
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=changeme
- DOCKER_INFLUXDB_INIT_ORG=organisation_name
- DOCKER_INFLUXDB_INIT_BUCKET=bucket_name
- TZ:Europe/Berlin
#- DOCKER_INFLUXDB_INIT_MODE=upgrade #See for details how to upgrade from 1.x to 2.x: https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/docker/