We run a number of Laravel apps and supporting services on a self-hosted Coolify server. This page collects problems that cost us real debugging time, with the fix for each. It is based on our own troubleshooting notes, not a feature tour. We do not give cost figures here because we have not measured them for this article.
1. A mounted folder is empty inside the container
Symptom: you add a persistent storage mount, redeploy, and the folder in the container is empty and owned by root.
What we found:
- In a bind mount, Source Path is the path on the host and Destination Path is the path inside the container. We had them swapped at first.
- If the source path does not exist on the host, Docker creates an empty, root-owned directory there without any error. That empty directory is the classic symptom.
- Saving a storage row in the Coolify dashboard changes nothing in the running container. Mounts only take effect after a full redeploy.
cat /proc/mounts | grep <dir>only shows that something is mounted./proc/self/mountinfoshows the exact host source path, which ends the guessing.
The order that works: check the files exist on the host with ls -la, fix the two path fields, do a full redeploy, then read /proc/self/mountinfo inside the container. Check the host side again afterwards. In one of our sessions the mount was correct but the host folder had been emptied minutes earlier, so the symptom stayed for a different reason.
2. You changed an environment variable and nothing happened
The app reads its config when it boots. Editing a variable in the Coolify dashboard does not reach a running process. Redeploy before you test the change. This cost us hours on two separate secrets until we made it a rule: every env edit is followed by a redeploy, then a test.
For Laravel specifically, remember that a cached config (php artisan config:cache) is baked at build or boot time too, so a variable can be right in the dashboard and still not be what the app sees.
3. Random 504s and routes that hang
Symptom: one app intermittently hangs or returns 504 while others are fine.
Two causes we found on the same server:
- The proxy (Traefik) kept rebuilding its configuration about every 20 seconds, because many running containers carried Traefik labels with no port. In our case these were CI runner apps. Clearing the junk domains from those apps stopped the churn.
- A container attached to several Docker networks gets a different IP picked each time the proxy config rebuilds. If the picked network is not one the proxy can reach, the route hangs. The fix is to pin the network with the label
traefik.docker.network=<network>on the app. A pin you add on the live container is lost at the next redeploy, so the durable fix belongs in the compose file in the repository.
Related findings: an app can lose a domain from its Coolify configuration, which shows as a 503, so check the domains list first. And we turned off HTTP/3 on the proxy after file uploads failed instantly while plain GET requests silently retried; that pointed at the browser’s QUIC session being dropped mid-request.
4. Do not put huge model files in the image
For services that need large model weights, we stopped baking them into the Docker image. The GitHub build runners ran out of disk when the image included the full set of model files. The pattern that works: download the files at first boot into a persistent volume. The first boot is slow because it downloads and validates before the app starts, and later boots reuse the volume.
5. Container names change, so look before you grep
Coolify names containers with generated ids, so docker ps --filter name=<app> finds nothing. Start with:
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'
Also note that a container can have zero mounts even when the app writes files.
6. A merged PR is not proof of what is running
After a fix, confirm the revision inside the live container before you debug further. A new image on a registry does not reach a Coolify service by itself. Someone has to redeploy it, or a deploy webhook has to fire after the build.
Our deploy rule
CI builds and pushes the image and calls the Coolify deploy webhook only when the main branch is green. Apps live in a Coolify project, with environment variables edited in the dashboard, and the proxy serves the domain. Keeping every app on that one path made the problems above easier to find, because there was only one place to look.