Skip to main content
Deploy tinykit using Docker for consistent, reproducible deployments on any platform.

Quick Start

Access at http://localhost:3000/tinykit

Dockerfile

tinykit includes a production-ready Dockerfile:

Environment Variables

Pass environment variables with -e:
Or use an env file:

Data Persistence

Always use a volume for /app/pocketbase/pb_data to persist your database across container restarts.

Bind Mount


Docker Compose

For easier management, use Docker Compose:
Run with:

Production Deployment

With Reverse Proxy (Caddy)

With nginx


Health Checks

The container includes a health endpoint at /tinykit:

Updating

Or with Docker Compose:

Troubleshooting

Check logs with docker logs tinykit. Common issues:
  • Missing environment variables
  • Invalid API key
  • Port already in use
Ensure the Pocketbase binary is compatible with your architecture. The default binary is for linux/amd64. For ARM (M1/M2 Mac), you may need to rebuild.
Verify your volume mount:
Ensure /app/pocketbase/pb_data is mounted to a volume.
The container runs as root by default. If using bind mounts, ensure the host directory is writable.

Resource Requirements

ResourceMinimumRecommended
CPU1 core2 cores
RAM512MB1GB
Disk1GB5GB+ (depends on data)
Limit resources with Docker: