Skip to content

Commit c59ee9b

Browse files
jp-agentaclaude
andcommitted
fix(hosting): hardcode loopback outside the port variable for postgres and store
${POSTGRES_PORT:-127.0.0.1:5432} put the loopback inside the default, so any port override (POSTGRES_PORT=5433) silently reverted to a public bind. Use the traefik-dashboard shape (127.0.0.1:${VAR:-port}) so the variable carries only the port and loopback survives overrides; same fix for the new AGENTA_STORE_PORT, whose own comment promises loopback-only. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 7df3256 commit c59ee9b

7 files changed

Lines changed: 12 additions & 12 deletions

hosting/docker-compose/ee/docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ services:
468468
networks:
469469
- agenta-network
470470
ports:
471-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
471+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
472472
# === LIFECYCLE ============================================ #
473473
restart: always
474474
healthcheck:

hosting/docker-compose/ee/docker-compose.gh.local.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ services:
329329
networks:
330330
- agenta-ee-gh-network
331331
ports:
332-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
332+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
333333
# === LIFECYCLE ============================================ #
334334
restart: always
335335
healthcheck:
@@ -444,7 +444,7 @@ services:
444444
# Loopback-only by default (never expose the store to a public IP); override AGENTA_STORE_PORT
445445
# to change. In-network services reach it directly at seaweedfs:8333, no publish needed.
446446
ports:
447-
- "${AGENTA_STORE_PORT:-127.0.0.1:8333}:8333"
447+
- "127.0.0.1:${AGENTA_STORE_PORT:-8333}:8333"
448448
# === LABELS =============================================== #
449449
labels:
450450
- "traefik.enable=false"

hosting/docker-compose/ee/docker-compose.gh.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ services:
341341
networks:
342342
- agenta-ee-gh-network
343343
ports:
344-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
344+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
345345
# === LIFECYCLE ============================================ #
346346
restart: always
347347
healthcheck:
@@ -456,7 +456,7 @@ services:
456456
# Loopback-only by default (never expose the store to a public IP); override AGENTA_STORE_PORT
457457
# to change. In-network services reach it directly at seaweedfs:8333, no publish needed.
458458
ports:
459-
- "${AGENTA_STORE_PORT:-127.0.0.1:8333}:8333"
459+
- "127.0.0.1:${AGENTA_STORE_PORT:-8333}:8333"
460460
# === LABELS =============================================== #
461461
labels:
462462
- "traefik.enable=false"

hosting/docker-compose/oss/docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ services:
451451
networks:
452452
- agenta-network
453453
ports:
454-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
454+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
455455
# === LIFECYCLE ============================================ #
456456
restart: always
457457
healthcheck:

hosting/docker-compose/oss/docker-compose.gh.local.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ services:
327327
networks:
328328
- agenta-oss-gh-network
329329
ports:
330-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
330+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
331331
# === LIFECYCLE ============================================ #
332332
restart: always
333333
healthcheck:
@@ -442,7 +442,7 @@ services:
442442
# Loopback-only by default (never expose the store to a public IP); override AGENTA_STORE_PORT
443443
# to change. In-network services reach it directly at seaweedfs:8333, no publish needed.
444444
ports:
445-
- "${AGENTA_STORE_PORT:-127.0.0.1:8333}:8333"
445+
- "127.0.0.1:${AGENTA_STORE_PORT:-8333}:8333"
446446
# === LABELS =============================================== #
447447
labels:
448448
- "traefik.enable=false"

hosting/docker-compose/oss/docker-compose.gh.ssl.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ services:
351351
networks:
352352
- agenta-gh-ssl-network
353353
ports:
354-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
354+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
355355
# === LIFECYCLE ============================================ #
356356
restart: always
357357
healthcheck:
@@ -466,7 +466,7 @@ services:
466466
# Loopback-only by default (never expose the store to a public IP); override AGENTA_STORE_PORT
467467
# to change. In-network services reach it directly at seaweedfs:8333, no publish needed.
468468
ports:
469-
- "${AGENTA_STORE_PORT:-127.0.0.1:8333}:8333"
469+
- "127.0.0.1:${AGENTA_STORE_PORT:-8333}:8333"
470470
# === LABELS =============================================== #
471471
labels:
472472
- "traefik.enable=false"

hosting/docker-compose/oss/docker-compose.gh.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ services:
358358
networks:
359359
- agenta-oss-gh-network
360360
ports:
361-
- "${POSTGRES_PORT:-127.0.0.1:5432}:5432"
361+
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
362362
# === LIFECYCLE ============================================ #
363363
restart: always
364364
healthcheck:
@@ -473,7 +473,7 @@ services:
473473
# Loopback-only by default (never expose the store to a public IP); override AGENTA_STORE_PORT
474474
# to change. In-network services reach it directly at seaweedfs:8333, no publish needed.
475475
ports:
476-
- "${AGENTA_STORE_PORT:-127.0.0.1:8333}:8333"
476+
- "127.0.0.1:${AGENTA_STORE_PORT:-8333}:8333"
477477
# === LABELS =============================================== #
478478
labels:
479479
- "traefik.enable=false"

0 commit comments

Comments
 (0)