Merge pull request #2 from dustinbrun/master

Add Grafana, Influxdb
This commit is contained in:
Dustin 2021-03-20 12:50:41 +01:00 committed by GitHub
commit 9aa6bfcdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 6 deletions

View File

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

View File

@ -14,7 +14,7 @@ services:
- DB_HOST=db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=123456
- DB_PASSWD=changeme
- APP_NAME=My_Git_Server
- DISABLE_SSH=true
- DISABLE_REGISTRATION=true
@ -36,9 +36,9 @@ services:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_USER=gitea
- MYSQL_PASSWORD=123456
- MYSQL_PASSWORD=changeme
- MYSQL_DATABASE=gitea
networks:
- 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:
- ./db_config:/config
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=hedgedoc
- MYSQL_USER=hedgedoc
- MYSQL_PASSWORD=123456
- MYSQL_PASSWORD=changeme
- PGID=0
- PUID=0
- TZ=Europe/Berlin
@ -25,7 +25,7 @@ services:
environment:
- DB_HOST=mariadb
- DB_USER=hedgedoc
- DB_PASS=123456
- DB_PASS=changeme
- DB_NAME=hedgedoc
- DB_PORT=3306
- 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/