mirror of
https://codeberg.org/pluja/kycnot.me
synced 2024-10-01 01:05:59 -04:00
change pb image
This commit is contained in:
parent
9dacf1f796
commit
3d6234a4f9
@ -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
|
||||
|
@ -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"]
|
Loading…
Reference in New Issue
Block a user