Configuring Coolify to run on a custom port #7814
Replies: 2 comments 8 replies
Running Coolify on a Custom Port (Coolify v4.0.0-beta)Coolify itself does not directly bind application ports in Modifying the main Recommended (Persistent & Update-Safe) ApproachStep 1: Navigate to the Coolify source directorycd /data/coolify/sourceStep 2: Identify the container’s internal portOpen the existing Example: ports:
- "8000:80"
You must keep the container port unchanged. Step 3: Create a Docker Compose override fileCreate a new file named touch docker-compose.override.ymlAdd the following content: services:
coolify:
ports:
- "5000:80"This tells Docker to expose Coolify on port 5000 instead of 8000, without touching the original configuration. Step 4: Restart CoolifyApply the changes by recreating the containers: docker compose down
docker compose up -dDocker automatically merges Step 5: Access CoolifyOpen your browser and visit: Notes on Caddy and Environment Variables
Summary
This approach is the officially recommended Docker pattern and works cleanly with Coolify updates. |
|
You can also just add / update the |
Uh oh!
There was an error while loading. Please reload this page.
Running Coolify on a Custom Port
Hello Coolify Community,
I recently installed Coolify 4.0.0-beta on my server and would like the application to listen on a port other than the default (8000).
After reviewing the
.envfile anddocker-compose.yml, I noticed that Coolify uses a reverse proxy (Caddy) and does not directly expose ports in Compose.I would like guidance on:
Thank you for your help!
All reactions