Quick Start
http://localhost:3000/tinykit
Dockerfile
tinykit includes a production-ready Dockerfile:Environment Variables
Pass environment variables with-e:
Data Persistence
Named Volume (Recommended)
Bind Mount
Docker Compose
For easier management, use Docker Compose:Production Deployment
With Reverse Proxy (Caddy)
With nginx
Health Checks
The container includes a health endpoint at/tinykit:
Updating
Troubleshooting
Container exits immediately
Container exits immediately
Check logs with
docker logs tinykit. Common issues:- Missing environment variables
- Invalid API key
- Port already in use
Pocketbase fails to start
Pocketbase fails to start
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.
Data not persisting
Data not persisting
Verify your volume mount:Ensure
/app/pocketbase/pb_data is mounted to a volume.Permission denied errors
Permission denied errors
The container runs as root by default. If using bind mounts, ensure the host directory is writable.
Resource Requirements
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 1 core | 2 cores |
| RAM | 512MB | 1GB |
| Disk | 1GB | 5GB+ (depends on data) |