diff --git a/docker-compose.yml b/docker-compose.yml index 841efe4..b1ea52e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -48,6 +48,8 @@ services: - POSTGRES_USER=fmtm - POSTGRES_PASSWORD=dummycipassword - POSTGRES_DB=splitter + volumes: + - ./scripts/20_enable_sfcgal.sql:/docker-entrypoint-initdb.d/20_enable_sfcgal.sql:ro ports: - "5439:5432" networks: diff --git a/scripts/20_enable_sfcgal.sql b/scripts/20_enable_sfcgal.sql new file mode 100644 index 0000000..9e2cae9 --- /dev/null +++ b/scripts/20_enable_sfcgal.sql @@ -0,0 +1 @@ +CREATE EXTENSION IF NOT EXISTS postgis_sfcgal WITH SCHEMA public; diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 0000000..e075260 --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,6 @@ +# FMTM-Splitter Scripts + +- This dir is for initialisation scripts of sorts, generally regarding + deployment, database, general devops concerns. +- This is not a place for Python scripts. Those can be committed to the + `contrib` dir.