Skip to content

Commit 1d1f689

Browse files
committed
Use postgis
1 parent 6c6a7aa commit 1d1f689

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ apt install python3 python3-dev virtualenv gcc pkg-config libpng-dev libjpeg-dev
1212
#### Database
1313

1414
```
15-
apt install postgresql postgresql-contrib
15+
apt install postgresql postgresql-contrib postgresql-postgis
1616
```
1717

1818
#### Web server

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
postgres:
3-
image: postgres:17-alpine
3+
image: postgis/postgis:17-3.5-alpine
44
volumes:
55
- type: bind
66
source: ../tools/database/schema.sql

docker/postgres-init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ EOSQL
1010

1111
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "osmose_frontend" <<-EOSQL
1212
CREATE EXTENSION IF NOT EXISTS pgcrypto;
13+
CREATE EXTENSION IF NOT EXISTS postgis;
1314
EOSQL
1415

1516
psql -v ON_ERROR_STOP=1 --username "osmose" --dbname "osmose_frontend" < /schema.sql

0 commit comments

Comments
 (0)