Skip to content

Commit

Permalink
Wire up latest POSTGIS container and make exception for stdlib on por…
Browse files Browse the repository at this point in the history
…t 5000
  • Loading branch information
ingalls committed Oct 7, 2024
1 parent b39c0e4 commit 4c55abd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion api/web/src/std.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c55abd

Please sign in to comment.