-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
✅ DoneIssues that are fixed and a PR is ready to be merged.Issues that are fixed and a PR is ready to be merged.🐞 Confirmed BugVerified issues that have been reproduced by the team.Verified issues that have been reproduced by the team.🚧 NextIssues and PRs planned for the next release.Issues and PRs planned for the next release.
Description
Error Message and Logs
Today I needed to re-deploy an older owncloud instance. There was no change in docker-compose, just a restart pretty much.
It fails:
2025-Nov-06 09:18:49.086698
Oops something is not okay, are you okay? 😢
2025-Nov-06 09:18:49.098196
Invalid Docker volume definition (array syntax): Invalid volume source: contains forbidden character '${' (variable substitution with potential command injection). Shell metacharacters are not allowed for security reasons. Please use safe path names without shell metacharacters.
Steps to Reproduce
- Create a docker-compose with a volumen path like
${VOLUMES_PATH}/mysql-backup - Try to deploy
one full example
services:
database:
build:
context: './mysql'
restart: always
environment:
- BACKUP_HEARTBEAT_URL=${DB_BACKUP_HEARTBEAT_URL}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- type: bind
source: ${VOLUMES_PATH}/mysql
target: /var/lib/mysql
# noinspection ComposeUnknownKeys
is_directory: true
- type: bind
source: ${VOLUMES_PATH}/mysql-backup
target: /backup
# noinspection ComposeUnknownKeys
is_directory: true
Example Repository URL
No response
Coolify Version
v4.0.0-beta.441
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Debian GNU/Linux 12 (bookworm)
Additional Information
Probably #6891 introduced this "bug".
For me it's a serious issue since I now have a 6-server setup running 28 projects that wouldn't be deployable any longer, if I do not find an alternative.
I use ENV vars in volumen pathes because the docker-compose is in a git repo which acts pretty much as a template, so I can run the same service multiple times. Hence I cannot use absolute pathes.
Metadata
Metadata
Assignees
Labels
✅ DoneIssues that are fixed and a PR is ready to be merged.Issues that are fixed and a PR is ready to be merged.🐞 Confirmed BugVerified issues that have been reproduced by the team.Verified issues that have been reproduced by the team.🚧 NextIssues and PRs planned for the next release.Issues and PRs planned for the next release.