services: pocketbase: build: context: . dockerfile_inline: | FROM alpine:3.22 ARG PB_VERSION=0.39.9 RUN apk add --no-cache \ unzip \ ca-certificates 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/ EXPOSE 8080 CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"] ports: - "50499:8080" restart: unless-stopped volumes: - ./volumes/pocketbase/pb_data:/pb/pb_data - ./volumes/pocketbase/pb_hooks:/pb/pb_hooks