Update README.md and remove unnecessary Docker files and configurations
This commit is contained in:
28
README.md
28
README.md
@@ -18,30 +18,4 @@ pnpm install
|
||||
bun install
|
||||
```
|
||||
|
||||
Next, run the Docker container to host your own PocketBase instance:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Head over to `localhost:8080` and register with random details (they will be overwritten later). Apply the `pb_backup.zip` included in the repo.
|
||||
|
||||
You will be logged out from your PocketBase instance. Log in again with the following details:
|
||||
- Email: `example@example.com`
|
||||
- Password: `changeme123`
|
||||
|
||||
Finally, rename `example.env` to `.env`.
|
||||
|
||||
Then, run the development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) in your browser to see the result.
|
||||
then, Open [http://localhost:3000](http://localhost:3000) in your browser to see the result.
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
services:
|
||||
pocketbase:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./pb_data:/pb/pb_data
|
||||
restart: unless-stopped
|
||||
22
dockerfile
22
dockerfile
@@ -1,22 +0,0 @@
|
||||
FROM alpine:latest
|
||||
|
||||
ARG PB_VERSION=0.22.12
|
||||
|
||||
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"]
|
||||
BIN
pb_backup.zip
BIN
pb_backup.zip
Binary file not shown.
Reference in New Issue
Block a user