Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yk-lab/pocketbase-docker-compose


https://github.com/yk-lab/pocketbase-docker-compose

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

        

# PocketBase Docker Compose Example

## Usage

```shell-session
$ docker compose up -d
```

## Latest Version

```yaml:compose.yml
services:
pb:
image: ghcr.io/yk-lab/pocketbase:latest
command: [ "serve", "--http", "0.0.0.0:8090" ]
volumes:
- pb_data:/pb_data
ports:
- "${PORT:-8090}:8090"

volumes:
pb_data:
```

## Specify Version

```yaml:compose.yml
services:
pb:
build:
context: .
args:
- VERSION=0.16.5
- PORT=${PORT:-8090}
command: [ "serve", "--http", "0.0.0.0:${PORT:-8090}" ]
volumes:
- pb_data:/pb_data
ports:
- "${PORT:-8090}:${PORT:-8090}"

volumes:
pb_data:
```

OR

```yaml:compose.yml
services:
pb:
image: ghcr.io/yk-lab/pocketbase:0.16.5
command: [ "serve", "--http", "0.0.0.0:8090" ]
volumes:
- pb_data:/pb_data
ports:
- "${PORT:-8090}:8090"

volumes:
pb_data:
```

## Run Update

```shell-session
$ docker compose run --rm pb ./pocketbase update
```