Prerequisites
- A Coolify account with access to a server
- Docker support enabled on your Coolify instance
Deployment Steps
1
Create or access your project
If you don’t have a project yet, create a new one in Coolify. Navigate to your project dashboard once created.
2
Create a new resource
In your project, create a new resource. In the “New Resource” page, select Docker Image from the Docker Based section.Enter the following Docker image name:
3
Configure exposed ports
In the General configuration section:
- Locate the Ports Exposes field
- Enter the port
3000 - Click Save
4
Configure environment variables
Navigate to Environment Variables in the sidebar and add the following variables:
For
BETTER_AUTH_URL, use the URL generated by Coolify in the General tab under Domains.- Local Storage
- S3-Compatible Storage
If you’re using local file storage, no additional environment variables are needed for storage.
5
Configure persistent storage
Navigate to Persistent Storage and add the following volume mounts:
Required volume
Destination Path:
/app/dataStores the internal Openinary database (admin accounts, API keys, metadata).Storage volumes (if not using S3)
Destination Path:
/app/apps/api/publicStores original uploaded assets and media files.Destination Path:
/app/apps/api/cacheStores optimized and transformed assets in cache for faster delivery.These volume mounts are essential for data persistence across deployments. Without them, your data will be lost during container restarts or updates.
6
Deploy your application
Once all configurations are set, click the Deploy button to start your Openinary instance.
Your Openinary instance should now be deploying. Monitor the deployment logs to ensure everything starts correctly.
7
Initial setup
Once deployed, visit your Coolify-generated URL or custom domain. You should land on the initial setup page where you can create your administrator account.After signing in, you should see the sample assets or your bucket content in the Dashboard.
Troubleshooting
If you encounter any issues during deployment:- Check the deployment logs in Coolify for error messages
- Verify all environment variables are correctly set
- Ensure your domain DNS is properly configured (if using a custom domain)