change pb image

This commit is contained in:
pluja 2024-02-18 22:58:54 +01:00
parent 9dacf1f796
commit 3d6234a4f9
2 changed files with 2 additions and 27 deletions

View File

@ -28,15 +28,12 @@ services:
caddy.reverse_proxy: "{{upstreams 4488}}"
pocketbase:
build:
context: .
dockerfile: pocketbase.Dockerfile
image: spectado/pocketbase:latest
container_name: kycnotme-pocketbase
restart: unless-stopped
volumes:
- pb_data:/pb/pb_data
- pb_public:/pb/pb_public
- pb_migrations:/pb/pb_migrations
networks:
caddy: {}
default:
@ -45,7 +42,7 @@ services:
- "database"
labels:
caddy: "${PB_DOMAIN}"
caddy.reverse_proxy: "{{upstreams 8090}}"
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.request_body.max_size: 10MB
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1

View File

@ -1,22 +0,0 @@
FROM alpine:latest
ARG PB_VERSION=0.21.3
RUN apk add --no-cache \
unzip \
ca-certificates
# download and unzip PocketBase
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip
RUN unzip /tmp/pb.zip -d /pb/
# uncomment to copy the local pb_migrations dir into the image
# COPY ./pb_migrations /pb/pb_migrations
# uncomment to copy the local pb_hooks dir into the image
# COPY ./pb_hooks /pb/pb_hooks
EXPOSE 8080
# start PocketBase
CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"]