Change default PocketBase port to 8070

Set the default listen/host port to 8070 across both the rootless and
root stacks (previously 8080 rootless / 8081 root). Both internal and
external mappings derive from the same PB_PORT/PB_PORT_ROOT variables,
so a single change covers container and host.

Updated .env.example, both Dockerfiles (ENV/EXPOSE), both compose files
(env, port mapping, healthcheck), and both entrypoint fallbacks.

Note: both stacks now default to host port 8070, so they can no longer
run simultaneously without overriding PB_PORT_ROOT.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
tajniak81
2026-07-19 16:51:56 +02:00
co-authored by Claude Opus 4.8
parent e11acb8165
commit 9c49a1f544
7 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ services:
restart: unless-stopped
environment:
# server
PB_PORT: ${PB_PORT:-8080}
PB_PORT: ${PB_PORT:-8070}
# superuser bootstrap (checked/created by the entrypoint on every start)
PB_ADMIN_EMAIL: ${PB_ADMIN_EMAIL:-}
PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD:-}
@@ -24,7 +24,7 @@ services:
PB_ENCRYPTION_KEY: ${PB_ENCRYPTION_KEY:-}
ports:
# host:container
- "${PB_PORT:-8080}:${PB_PORT:-8080}"
- "${PB_PORT:-8070}:${PB_PORT:-8070}"
volumes:
# persist the SQLite database and uploaded files
- pb_data:/pb/pb_data
@@ -32,7 +32,7 @@ services:
# - ./pb_migrations:/pb/pb_migrations
# - ./pb_hooks:/pb/pb_hooks
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:${PB_PORT:-8080}/api/health || exit 1"]
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:${PB_PORT:-8070}/api/health || exit 1"]
interval: 30s
timeout: 5s
start_period: 5s