mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-09 06:07:56 -05:00
Build pocketbase from source
This commit is contained in:
parent
57251e0de7
commit
9dacf1f796
@ -8,6 +8,7 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
pb_data: {}
|
pb_data: {}
|
||||||
pb_public: {}
|
pb_public: {}
|
||||||
|
pb_migrations: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
crawler:
|
crawler:
|
||||||
@ -27,12 +28,15 @@ services:
|
|||||||
caddy.reverse_proxy: "{{upstreams 4488}}"
|
caddy.reverse_proxy: "{{upstreams 4488}}"
|
||||||
|
|
||||||
pocketbase:
|
pocketbase:
|
||||||
image: ghcr.io/muchobien/pocketbase:latest
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: pocketbase.Dockerfile
|
||||||
container_name: kycnotme-pocketbase
|
container_name: kycnotme-pocketbase
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- pb_data:/pb_data
|
- pb_data:/pb/pb_data
|
||||||
- pb_public:/pb_public
|
- pb_public:/pb/pb_public
|
||||||
|
- pb_migrations:/pb/pb_migrations
|
||||||
networks:
|
networks:
|
||||||
caddy: {}
|
caddy: {}
|
||||||
default:
|
default:
|
||||||
@ -42,6 +46,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
caddy: "${PB_DOMAIN}"
|
caddy: "${PB_DOMAIN}"
|
||||||
caddy.reverse_proxy: "{{upstreams 8090}}"
|
caddy.reverse_proxy: "{{upstreams 8090}}"
|
||||||
|
caddy.request_body.max_size: 10MB
|
||||||
healthcheck: #optional (recommended) since v0.10.0
|
healthcheck: #optional (recommended) since v0.10.0
|
||||||
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
|
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
22
pocketbase.Dockerfile
Normal file
22
pocketbase.Dockerfile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
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"]
|
Loading…
Reference in New Issue
Block a user