fix(deploy): move PostgREST host port to 3011 to coexist with dev stack
The dev PostgREST (started outside docker compose for local development) and the production PostgREST (started by docker compose up) were both trying to bind 127.0.0.1:3001. Even with fuser -k in the deploy cleanup, something on tyler's host (likely a process supervisor restarting the dev PostgREST) keeps reclaiming 3001 between our check and the docker bind. Move the production PostgREST to host port 3011, keeping the container's internal port at 3001 (PostgREST's default). This lets dev and prod coexist on the same host without fighting over a port. Update NEXT_PUBLIC_API_URL to http://localhost:3011 in: - Build step env (so the build bakes in the right URL) - Start Docker stack .env append (so docker compose + app see the URL) - Deploy step .env.production writing (so runtime app uses 3011)
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ services:
|
||||
PGRST_OPENAPI_MODE: disabled
|
||||
PGRST_DB_EXTRA_SEARCH_PATH: public,extensions
|
||||
ports:
|
||||
- "127.0.0.1:3001:3001"
|
||||
- "127.0.0.1:3011:3001"
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
|
||||
Reference in New Issue
Block a user