Added by Rafael Cardero 5 days ago
I got an interpolation error when migrating from OpenProject v16 to OpenProject v17. I fixed it by simply adding a variable to the .env file, but I am curious about if others have faced a similar issue.
When I run this command:
docker-compose -f docker-compose.yml -f docker-compose.control.yml build
I get this error:
invalid interpolation format for services.cron.environment.OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL.
You may need to escape any $ with another $.
The mentioned line in the docker-compose.yml file is:
OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL: "${COLLABORATIVE_SERVER_URL:-wss://${OPENPROJECT_HOST__NAME}/hocuspocus}"
What I did to workaround the issue?
Add the following lines to an .env file in the same folder of docker-compose.yml
COLLABORATIVE_SERVER_URL="wss://mydomain.com/hocuspocus"
OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__URL="wss://mydomain.com/hocuspocus"
I am running:
Docker Compose version v2.12.2
Docker version 25.0.14, build 0bab007
Amazon Linux 2 on Amazon Lightsail
Any idea?
Thanks.