Add pgwatch to docker-compose (#83)

* Fix import error due to differences in geom type

* fix id missing in clip table and skipping importing shapefiles with geometry errors

* fix clip id error in the sql

* Change postgresql version from 9.6 to 11

* Added sql to validate geometry and other make commands to run them manually

* added pgwatch to docker-compose
pull/84/head
mazano 2019-06-16 09:52:56 +02:00 zatwierdzone przez GitHub
rodzic 7f66d35143
commit 446d9fadf5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 30 dodań i 0 usunięć

Wyświetl plik

@ -5,6 +5,9 @@ volumes:
import_done:
import_queue:
cache:
pg:
grafana:
pw2:
services:
db:
@ -105,3 +108,30 @@ services:
# seconds between 2 executions of the script
# if 0, then no update will be done, only the first initial import from the PBF
- 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