Skip to content

Commit 097ca20

Browse files
authored
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;"`
1 parent 7459ab2 commit 097ca20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/compose/directus-with-postgresql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
redis:
3737
condition: service_healthy
3838
postgresql:
39-
image: postgres:16-alpine
39+
image: postgis/postgis:16-3.4-alpine
4040
volumes:
4141
- directus-postgresql-data:/var/lib/postgresql/data
4242
environment:

0 commit comments

Comments
 (0)