プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

create pocketbase

Kohei Watanabe (Dec 20, 2023, 12:26 AM +0900) e353a7db c2508815

+35
+23
pocketbase/Dockerfile
··· 1 + # https://pocketbase.io/docs/going-to-production#using-docker 2 + FROM alpine:latest 3 + 4 + ARG PB_VERSION=0.20.1 5 + 6 + RUN apk add --no-cache \ 7 + unzip \ 8 + ca-certificates 9 + 10 + # download and unzip PocketBase 11 + ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip 12 + RUN unzip /tmp/pb.zip -d /pb/ 13 + 14 + # uncomment to copy the local pb_migrations dir into the image 15 + # COPY ./pb_migrations /pb/pb_migrations 16 + 17 + # uncomment to copy the local pb_hooks dir into the image 18 + # COPY ./pb_hooks /pb/pb_migrations 19 + 20 + EXPOSE 8080 21 + 22 + # start PocketBase 23 + CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"]
+12
pocketbase/compose.yml
··· 1 + services: 2 + pocketbase: 3 + image: kou029w/pocketbase 4 + build: "." 5 + ports: 6 + - "8080:8080" 7 + volumes: 8 + - ./pb_migrations:/pb/pb_migrations 9 + - ./pb_hooks:/pb/pb_hooks 10 + - pb_data:/pb/pb_data 11 + volumes: 12 + pb_data: