33 lines
949 B
YAML
33 lines
949 B
YAML
services:
|
|
|
|
timescaledb:
|
|
image: timescale/timescaledb-ha:pg18
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
- 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
|