coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.47k stars 1.88k forks source link

[Bug]: Using variable in volume path leads to unfixable error #4222

Open Fruup opened 1 week ago

Fruup commented 1 week ago

Error Message and Logs

After adding a volume with environment variable interpolation to my docker compose file, all subsequent clicks on "Reload Compose File" throw an error - even after reverting the change and removing the volume. The error also shows up when navigating to the "Storage" tab. The storages seem to be broken and unfixable.

The error:

Error: bash: line 1: unexpected EOF while looking for matching `}' (View: /var/www/html/resources/views/livewire/project/service/storage.blade.php)

Image

Steps to Reproduce

  1. Create a resource using docker-compose as build tool
  2. Add - /volumes/test-app/${COOLIFY_ENVIRONMENT:-default}/data:/data to the volumes array of a container
  3. Push
  4. Click "Reload Compose File" in the tab "General"

Example Repository URL

No response

Coolify Version

v4.0.0-beta.364

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04 LTS

Additional Information

No response