added pgwatch to docker-compose

pull/83/head
admire 2019-06-16 09:49:33 +02:00
rodzic d2de10eaad
commit c411e5bb9b
1 zmienionych plików z 30 dodań i 0 usunięć

Wyświetl plik

@ -5,6 +5,9 @@ volumes:
import_done: import_done:
import_queue: import_queue:
cache: cache:
pg:
grafana:
pw2:
services: services:
db: db:
@ -105,3 +108,30 @@ services:
# seconds between 2 executions of the script # seconds between 2 executions of the script
# if 0, then no update will be done, only the first initial import from the PBF # if 0, then no update will be done, only the first initial import from the PBF
- TIME=120 - TIME=120
pgwatch2:
image: cybertec/pgwatch2-postgres
hostname: pgwatch2
volumes:
- pg:/var/lib/postgresql
- grafana:/var/lib/grafana
- pw2:/pgwatch2/persistent-config
environment:
- PW2_TESTDB=false
- PW2_PG_SCHEMA_TYPE=metric-dbname-time
- PW2_WEBNOANONYMOUS=true
- PW2_WEBUSER=admin
- PW2_WEBPASSWORD=pgwatch2
- PW2_WEBNOCOMPONENTLOGS=false
- PW2_WEBHOST=0.0.0.0
- PW2_WEBPORT=8080
- PW2_GRAFANANOANONYMOUS=true
- PW2_GRAFANAUSER=admin
- PW2_GRAFANAPASSWORD=pgwatch2
- PW2_GRAFANA_BASEURL=http://0.0.0.0:3000
restart: on-failure
ports:
- 3000:3000
- 8080:8080
depends_on:
db:
condition: service_healthy