Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SQL Import #970

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile.db
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM library/postgres
FROM library/postgres:9.6

RUN apt-get update \
&& apt-get install -y \
Expand All @@ -7,6 +7,7 @@ RUN apt-get update \
postgresql-9.6-postgis-2.3 \
postgresql-contrib-9.6 \
postgresql-9.6-postgis-scripts \
postgresql-server-dev-9.6 \
pgtop \
&& apt-get clean \
&& apt-get autoremove \
Expand Down
7 changes: 4 additions & 3 deletions docker-entrypoint-initdb.d/setup.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CREATE USER "www-data" WITH PASSWORD 'password';
ALTER USER "www-data" WITH NOSUPERUSER NOCREATEROLE NOCREATEDB;
-- ALTER USER "www-data" WITH NOSUPERUSER NOCREATEROLE NOCREATEDB;
ALTER USER "www-data" WITH SUPERUSER;
CREATE DATABASE osmtm OWNER "www-data" ENCODING 'UTF8' TEMPLATE template0;
\connect osmtm
CREATE EXTENSION postgis;
SELECT postgis_full_version();
-- CREATE EXTENSION postgis;
-- SELECT postgis_full_version();