Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yk-lab/pocketbase-docker-compose
https://github.com/yk-lab/pocketbase-docker-compose
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yk-lab/pocketbase-docker-compose
- Owner: yk-lab
- License: mit
- Created: 2022-07-10T13:32:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T11:59:17.000Z (5 months ago)
- Last Synced: 2024-11-05T09:49:34.049Z (2 months ago)
- Language: Dockerfile
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```