diff --git a/doc/osmCoverage.md b/doc/osmCoverage.md index cdae0e7..72ae46d 100644 --- a/doc/osmCoverage.md +++ b/doc/osmCoverage.md @@ -37,27 +37,36 @@ 1) `docker pull kartoza/postgis:9.6-2.4` -2) `mkdir pg_data` +2) `mkdir $HOME/pg_data` -3) `docker run --name=postgis -d -e POSTGRES_USER=alex -e POSTGRES_PASS=password -e POSTGRES_DBNAME=gis -e ALLOW_IP_RANGE=0.0.0.0/0 -p 5432:5432 -v pg_data:$(pwd)/pg_data --restart=always kartoza/postgis:9.6-2.4` +3) `docker run --name=postgis -d -e POSTGRES_USER=alex -e POSTGRES_PASS=password -e POSTGRES_DBNAME=gis -e ALLOW_IP_RANGE=0.0.0.0/0 -p 5432:5432 -v $HOME/pg_data:/var/lib/postgresql --restart=always kartoza/postgis:9.6-2.4` + + * --name=postgis * `-e POSTGRES_USER=alex` * `-e POSTGRES_PASS=password` * `-e POSTGRES_DBNAME=gis` * `-e ALLOW_IP_RANGE=0.0.0.0/0` すべてのIPからの接続を許可する * `-p 5432:5432` - * `-v pg_data:$(pwd)/pg_data` PostgreSQL databade data folder + * `-v $HOME/pg_data:/var/lib/postgresql` PostgreSQL databade data folder * `--restart=always` - "pgAdmin4"で接続を確認する -1) `docker run -p 80:80 -e "PGADMIN_DEFAULT_EMAIL=user" -d dpage/pgadmin4` +1) `docker run --name=pgadmin4 -p 80:80 -e "PGADMIN_DEFAULT_EMAIL=gisuser@domain.com" -e "PGADMIN_DEFAULT_PASSWORD=gisuser" -d dpage/pgadmin4` + + * --name=pgadmin4 + * -e "PGADMIN_DEFAULT_EMAIL=gisuser@domain.com" + * -e "PGADMIN_DEFAULT_PASSWORD=gisuser" 2) pgAdmin4 : Login -3) pgAdmin4 : 接続 + * `http://localhost/` + * userid: `gisuser@domain.com` + * password: `gisuser` - * host name: `192.168.0.11` +3) pgAdmin4 : 接続 / Connection + + * host name: `localhost` * port: `5432` * database admin: `postgres` * user name: `alex` diff --git a/src/gisdb.properties b/src/gisdb.properties deleted file mode 100644 index dd39b0a..0000000 --- a/src/gisdb.properties +++ /dev/null @@ -1,4 +0,0 @@ -db_driver=org.postgresql.Driver -db_url=jdbc:postgresql://192.168.0.29:5432/gisdb -db_user=postgres -db_passwd=