Prebuilt Image (Recommended)
The easiest way to deploy Convert to it! is using the official prebuilt Docker image from GitHub Container Registry.Using docker-compose.yml from repository
If you have the repository cloned, navigate to the root directory and run:
The
-f flag is required because the compose file lives in the docker/ subdirectory.Configuration
The defaultdocker-compose.yml configuration:
Environment Variables
You can customize the deployment using these environment variables:| Variable | Default | Description |
|---|---|---|
GITHUB_REPOSITORY | p2r3/convert | GitHub repository for the image |
CONVERT_IMAGE_TAG | latest | Docker image tag to use |
Access the Application
Once running, the application is available at:Local Build for Development
For development or customization, you can build the Docker image locally.First build is slow: The initial Docker build installs Chromium and related system packages (needed for Puppeteer in
buildCache.js). This can take 10-15 minutes. Subsequent builds are much faster due to Docker layer caching.Build Scripts
Thepackage.json includes convenient scripts for Docker workflows:
| Script | Command | Description |
|---|---|---|
| docker | bun run docker | Build and start containers |
| docker:build | bun run docker:build | Build the Docker image with current git SHA |
| docker:up | bun run docker:up | Start containers using docker-compose |
Build Arguments
When building locally, the following build arguments are available:VITE_COMMIT_SHA- Git commit hash to embed in the build
Managing the Container
View logs
Stop the container
Restart the container
Update to latest image
Production Deployment
For production deployments:- Use a reverse proxy (nginx, Caddy, Traefik) to handle SSL/TLS
- Configure proper restart policies (already set to
unless-stopped) - Set up monitoring for container health
- Use specific image tags instead of
latestfor reproducible deployments
Next Steps
- Set up local development environment
- Build the desktop application
- Learn about adding new file formats