User GuideDeployment
Dokploy Deployment
Deploy TinyShip with Dokploy on your own server
Dokploy is a self-hosted deployment platform that provides a UI and Git-based deployments on your own servers.
Prerequisites
- Linux VPS with root access
- Docker installed
- A domain name (recommended for HTTPS)
- Git repository access
Install Dokploy
Follow the official Dokploy installation guide. The quick install script is:
curl -sSL https://dokploy.com/install.sh | shMake sure ports 80, 443, and 3000 are available before installation.
Create a Project
- Open the Dokploy dashboard (default:
http://your-server-ip:3000) - Create a new project
- Connect your Git repository
Configure Build and Start
For TinyShip, use the following settings:
- Root Directory:
apps/next-apporapps/nuxt-app - Install Command:
pnpm install - Build Command:
pnpm run build - Start Command:
pnpm run start:nextorpnpm run start:nuxt - Port: Use the app port configured in your project (default:
7001)
Environment Variables
Add required environment variables in the Dokploy dashboard:
DATABASE_URL="postgresql://..."
BETTER_AUTH_SECRET="your-32-char-secret"
BETTER_AUTH_URL="https://yourdomain.com"Database and Migrations
Prepare your production database and run migrations:
pnpm db:generate
pnpm db:migrate
pnpm db:checkDeploy and Verify
- Click Deploy in Dokploy
- Configure your domain and HTTPS
- Verify health check endpoint:
/api/health
Troubleshooting
If deployment fails, check:
- Build logs in Dokploy dashboard
- Environment variables and database connection
- Port exposure and domain routing
- Health check endpoint accessibility
Back to Deployment Overview