FEAT : ajout de grafana
This commit is contained in:
parent
aaa63a4a8d
commit
9cdc80a238
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
tmp/
|
||||||
@ -1,7 +1,32 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
timescaledb:
|
timescaledb:
|
||||||
image: timescale/timescaledb-ha:pg18
|
image: timescale/timescaledb-ha:pg18
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=postgres
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
volumes:
|
||||||
|
- ./tmp/data/postgres:/home/postgres/pgdata # TODO : penser à changer sur serveur vs postgres de base !
|
||||||
|
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:main-ubuntu
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
environment:
|
||||||
|
- GF_SECURITY_ADMIN_USER=admin
|
||||||
|
- GF_SECURITY_ADMIN_PASSWORD=admin
|
||||||
|
- GF_USERS_ALLOW_SIGN_UP=false
|
||||||
|
# - GF_SERVER_DOMAIN=mesures-{{ client.nom }}.arbi.fr
|
||||||
|
# - GF_SERVER_ROOT_URL=https://mesures-{{ client.nom }}.arbi.fr
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
- GF_DATABASE_TYPE=postgres
|
||||||
|
- GF_DATABASE_HOST=timescaledb:5432
|
||||||
|
- GF_DATABASE_NAME=grafana
|
||||||
|
- GF_DATABASE_USER=postgres
|
||||||
|
- GF_DATABASE_PASSWORD=postgres
|
||||||
|
- GF_DATABASE_SSL_MODE=disable
|
||||||
|
volumes:
|
||||||
|
- ./tmp/data/grafana:/var/lib/grafana
|
||||||
|
depends_on:
|
||||||
|
- timescaledb
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user