From 4b0271272e983fdb85d4b816cbd91f34d91a7884 Mon Sep 17 00:00:00 2001 From: haturatu Date: Wed, 22 Apr 2026 04:46:24 +0900 Subject: feat(backend): pocketbase auth --- docker/demo-backend/index.html | 86 ++++++++++++++++++++++++++++++++++++++++++ docker/pocketbase/Dockerfile | 16 ++++++++ 2 files changed, 102 insertions(+) create mode 100644 docker/demo-backend/index.html create mode 100644 docker/pocketbase/Dockerfile (limited to 'docker') diff --git a/docker/demo-backend/index.html b/docker/demo-backend/index.html new file mode 100644 index 0000000..f7cc702 --- /dev/null +++ b/docker/demo-backend/index.html @@ -0,0 +1,86 @@ + + + + + + Protected Backend + + + +
+
Protected Target
+

Backend reached through the auth proxy

+

+ If you can see this page through http://localhost:8080/, the reverse proxy, + PocketBase-backed auth flow, and demo backend are all wired correctly. +

+

+ Default login for the seeded proxy admin user: admin / password123. +

+
+ + diff --git a/docker/pocketbase/Dockerfile b/docker/pocketbase/Dockerfile new file mode 100644 index 0000000..86fdf77 --- /dev/null +++ b/docker/pocketbase/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine:3.22 + +ARG PB_VERSION=0.36.9 + +RUN apk add --no-cache ca-certificates unzip wget + +WORKDIR /pb + +ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pocketbase.zip +RUN unzip /tmp/pocketbase.zip -d /pb && rm /tmp/pocketbase.zip && chmod +x /pb/pocketbase + +COPY pb_migrations /pb/pb_migrations + +EXPOSE 8090 + +CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8090", "--dir=/pb/pb_data"] -- cgit v1.2.3