This guide explains how to deploy your CustomGPT Portal using Coolify with Vite.
- Home server with Docker installed
- Coolify set up on your server
- Git repository access
Here's the structure of the Vite project:
custom-gpt-portal/
├── index.html
├── style.css
├── main.js
├── vite.config.js
├── package.json
├── Dockerfile
├── nginx.conf
└── docker-compose.yml
- Create a new repository on GitHub or another Git provider
- Upload all the project files to the repository
- Make sure to commit and push all changes
- Access your Coolify dashboard at
http://YOUR_SERVER_IP:8000
- Login with your credentials
- In Coolify dashboard, go to "Sources" → "Add new" → "GitHub" (or your Git provider)
- Follow the authorization process to connect your Git account
- Select the repository you created for the CustomGPT Portal
- In Coolify dashboard, navigate to "Resources" → "New Service"
- Select "Docker" as the service type
- Choose your repository from the connected sources
- Configure the build settings:
- Build Method: Dockerfile
- Docker Compose: No (unless you want to use the docker-compose.yml file)
- Port: 8080
- Publish Port: Choose a port for external access (e.g., 8080)
If needed, you can add environment variables in the Coolify dashboard:
- Go to your service settings
- Find "Environment Variables" section
- Add any required variables
- Click "Deploy" button in your service dashboard
- Coolify will automatically:
- Pull your code from the repository
- Build the Docker image using your Dockerfile
- Start the container with the specified settings
Once deployment is complete, access your portal at:
http://YOUR_SERVER_IP:PUBLISHED_PORT
When you want to add new CustomGPTs or make other changes:
- Update the
main.js
file with new GPT entries - Commit and push changes to your repository
- Trigger a redeployment in Coolify:
- Either set up automatic deployments on push
- Or manually click "Redeploy" in the Coolify dashboard
- In Coolify, go to your service settings
- Enable "Auto Deploy"
- Configure webhook in your Git repository to notify Coolify of changes
To replace OpenAI GPTs with LibreChat instances:
-
Deploy LibreChat using Coolify:
# Sample docker-compose.yml for LibreChat version: '3' services: librechat: image: ghcr.io/danny-avila/librechat:latest environment: - OPENAI_API_KEY=your_key_here # Add other env variables as needed ports: - "3080:3080" restart: unless-stopped
-
For each CustomGPT you want to replace:
- Create a custom preset in LibreChat
- Update the URL in your portal's
main.js
to point to your LibreChat instance - Redeploy the portal
- Coolify provides built-in HTTPS with Let's Encrypt
- Consider setting up authentication for your portal
- Regularly update your Coolify instance and deployed applications
- Keep your API keys and credentials secure
music.techdad.work customgpt.techdad.work photos.techdad.work blog.techdad.work n8n.techdad.work ai.techdad.work videoai.techdad.work qr.techdad.work pdf.techdad.work affine.techdad.work pptconvert.techdad.work