first commit
This commit is contained in:
commit
1fd827fd74
4 changed files with 57 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.env
|
31
Dockerfile
Normal file
31
Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
FROM alpine:latest
|
||||||
|
LABEL maintainer "J. Elfring <code@elfring.ms>"
|
||||||
|
|
||||||
|
ARG PB_VERSION=0.22.23
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
ca-certificates \
|
||||||
|
unzip
|
||||||
|
|
||||||
|
ADD --chown=daemon:daemon \
|
||||||
|
https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip \
|
||||||
|
/tmp/pb.zip
|
||||||
|
|
||||||
|
RUN mkdir /pb \
|
||||||
|
&& chown daemon:daemon /pb
|
||||||
|
|
||||||
|
USER daemon
|
||||||
|
WORKDIR /pb
|
||||||
|
|
||||||
|
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"]
|
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Pocketbase on Alpine Linux
|
||||||
|
|
||||||
|
A minimal pocketbase installation on Alpine linux.
|
||||||
|
|
||||||
|
## Versions
|
||||||
|
| Component | Version |
|
||||||
|
|--------------|-----------|
|
||||||
|
| Pocketbase | 0.22.23 |
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
See `docker-compose.yml`
|
14
docker-compose.yaml
Normal file
14
docker-compose.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
services:
|
||||||
|
|
||||||
|
pocketpase:
|
||||||
|
build: .
|
||||||
|
image: ${DOCKER_IMAGENAME:-pocketpase}
|
||||||
|
restart: unless-stopped
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-file: "2"
|
||||||
|
max-size: "500k"
|
||||||
|
volumes:
|
||||||
|
- ./pb_data:/pb/pb_data
|
||||||
|
|
Loading…
Reference in a new issue