diff --git a/.env.example b/.env.example index 83af26e..9aef790 100644 --- a/.env.example +++ b/.env.example @@ -10,10 +10,10 @@ PB_VERSION=0.39.7 CONTAINER_NAME=pocketbase # Port PocketBase listens on (used both inside the container and for the host mapping) -PB_PORT=8080 +PB_PORT=8070 # Port for the root variant (only used with `docker compose --profile root up`) -PB_PORT_ROOT=8081 +PB_PORT_ROOT=8070 # ── Superuser bootstrap ─────────────────────────────────────────────── # On every start the entrypoint checks whether PB_ADMIN_EMAIL already exists: diff --git a/Dockerfile.root b/Dockerfile.root index d4c45da..246b4e8 100644 --- a/Dockerfile.root +++ b/Dockerfile.root @@ -41,8 +41,8 @@ COPY --chmod=0755 entrypoint.root.sh /pb/entrypoint.root.sh VOLUME /pb/pb_data # default listen port; override at runtime with -e PB_PORT=... -ENV PB_PORT=8080 -EXPOSE 8080 +ENV PB_PORT=8070 +EXPOSE 8070 # shell form so ${PB_PORT} is expanded from the runtime environment HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ diff --git a/Dockerfile.rootless b/Dockerfile.rootless index e2e125f..d52654d 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -45,8 +45,8 @@ VOLUME /pb/pb_data USER pb # default listen port; override at runtime with -e PB_PORT=... -ENV PB_PORT=8080 -EXPOSE 8080 +ENV PB_PORT=8070 +EXPOSE 8070 # shell form so ${PB_PORT} is expanded from the runtime environment HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ diff --git a/docker-compose.root.yml b/docker-compose.root.yml index 5c50edc..9ecf6f8 100644 --- a/docker-compose.root.yml +++ b/docker-compose.root.yml @@ -16,7 +16,7 @@ services: restart: unless-stopped environment: # server - PB_PORT: ${PB_PORT_ROOT:-8081} + PB_PORT: ${PB_PORT_ROOT:-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_ROOT:-8081}:${PB_PORT_ROOT:-8081}" + - "${PB_PORT_ROOT:-8070}:${PB_PORT_ROOT:-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_ROOT:-8081}/api/health || exit 1"] + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:${PB_PORT_ROOT:-8070}/api/health || exit 1"] interval: 30s timeout: 5s start_period: 5s diff --git a/docker-compose.rootless.yml b/docker-compose.rootless.yml index bb2b27f..021d58d 100644 --- a/docker-compose.rootless.yml +++ b/docker-compose.rootless.yml @@ -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 diff --git a/entrypoint.root.sh b/entrypoint.root.sh index 5ba11fa..a34b3ef 100644 --- a/entrypoint.root.sh +++ b/entrypoint.root.sh @@ -6,7 +6,7 @@ set -e DATA_DIR="/pb/pb_data" DB_FILE="${DATA_DIR}/data.db" -PB_PORT="${PB_PORT:-8080}" +PB_PORT="${PB_PORT:-8070}" # ---- assemble global flags shared by every pocketbase invocation ---- set -- --dir="${DATA_DIR}" diff --git a/entrypoint.rootless.sh b/entrypoint.rootless.sh index 5650c79..8be2908 100644 --- a/entrypoint.rootless.sh +++ b/entrypoint.rootless.sh @@ -6,7 +6,7 @@ set -e DATA_DIR="/pb/pb_data" DB_FILE="${DATA_DIR}/data.db" -PB_PORT="${PB_PORT:-8080}" +PB_PORT="${PB_PORT:-8070}" # ---- assemble global flags shared by every pocketbase invocation ---- set -- --dir="${DATA_DIR}"