Support map fields in Directus

To support the map fields in Directus with Postgres you need the Postgis extension installed, with docker we can just change the image to use the equivalent alpine postgis image, source latest stable alpine from here (perhaps there is a better ref to use than one with a specific version number?): https://registry.hub.docker.com/r/postgis/postgis/

If you are already running Directus without postgis, and would like to make use of the mapping fields after updating the docker compose file you will need to go to `execute command`, select the postgres container and run the following command filling in the appropriate env vars;

`psql -U ${SERVICE_USER_POSTGRESQL} -d ${POSTGRESQL_DATABASE} -c "CREATE EXTENSION postgis;"`
This commit is contained in:
Toby Brancher 2024-07-21 23:39:22 +01:00 committed by GitHub
parent 7459ab22d1
commit 097ca209bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ services:
redis:
condition: service_healthy
postgresql:
image: postgres:16-alpine
image: postgis/postgis:16-3.4-alpine
volumes:
- directus-postgresql-data:/var/lib/postgresql/data
environment: