From 4c55abd8ceac2b3cce4ed020133eaed2358d1a74 Mon Sep 17 00:00:00 2001 From: ingalls Date: Mon, 7 Oct 2024 10:05:14 -0600 Subject: [PATCH] Wire up latest POSTGIS container and make exception for stdlib on port 5000 --- api/web/src/std.ts | 6 +++++- docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/web/src/std.ts b/api/web/src/std.ts index 654401d95..d767f9634 100644 --- a/api/web/src/std.ts +++ b/api/web/src/std.ts @@ -13,7 +13,11 @@ export function stdurl(url: string | URL): URL { } // Allow serving through Vue for hotloading - if (url.hostname === 'localhost') url.port = '5001' + // Disable if serving over 5000 as that's likely a docker compose install + if ( + url.hostname === 'localhost' + && url.port !== '5000' + ) url.port = '5001' return url; } diff --git a/docker-compose.yml b/docker-compose.yml index 98bca73a1..124983678 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: postgis: platform: linux/amd64 - image: postgis/postgis:16-3.4-alpine + image: postgis/postgis:17-3.4-alpine restart: 'always' ports: - 5433:5432