From 440ee6cc9a6367dd0ec11920ff86b8f744d67f6a Mon Sep 17 00:00:00 2001 From: Joao Figueiredo Date: Mon, 20 Jul 2026 00:26:24 +0100 Subject: [PATCH] chore: support local GeoServer development --- compose.yaml | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/compose.yaml b/compose.yaml index de31743..b8dcacb 100644 --- a/compose.yaml +++ b/compose.yaml @@ -7,9 +7,11 @@ services: restart: unless-stopped environment: PORT: ${APP_PORT:-4173} - WMS_ENDPOINT: ${WMS_ENDPOINT:-https://xpro-viz.jfig.net/geoserver/xpro/wms} - ALLOWED_WMS_ENDPOINTS: ${ALLOWED_WMS_ENDPOINTS:-https://xpro-viz.jfig.net/geoserver/xpro/wms} + WMS_ENDPOINT: ${DOCKER_WMS_ENDPOINT:-${WMS_ENDPOINT:-https://xpro-viz.jfig.net/geoserver/xpro/wms}} + ALLOWED_WMS_ENDPOINTS: ${DOCKER_ALLOWED_WMS_ENDPOINTS:-${ALLOWED_WMS_ENDPOINTS:-https://xpro-viz.jfig.net/geoserver/xpro/wms}} GEOSERVER_USERNAME: ${GEOSERVER_USERNAME:-admin} GEOSERVER_PASSWORD: ${GEOSERVER_PASSWORD} ports: - "${APP_PORT:-4173}:${APP_PORT:-4173}" + extra_hosts: + - "host.docker.internal:host-gateway" diff --git a/package.json b/package.json index 43f0cd8..f96cd34 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "start": "node server.js" + "start": "node --env-file-if-exists=.env server.js" }, "dependencies": { "ol": "10.6.1"