Closed lordimac closed 5 months ago
What Zammad version and tag?
Please see https://docs.zammad.org/en/latest/install/docker-compose.html#step-4-start-zammad-using-dockerhub-images for how to run commands in the containers properly.
Bump, worked that way in previous versions and also is the preferred way using Portainer (using the console function on the container running the command "rails c")...
There seems to be something wrong with the database config, which as far as I understand should be set while installing the stack using default compose file and vars
Did you read the documentation linked above? It explains how to run commands via the image's entrypoint in the proper way. This is required for Rails to have the necessary database configuration environment set up properly.
It did not work properly in previous versions, because these had a database.yml file in the image which only referred to the nulldb adapter, so that Rails would not fail but also not have the correct database available.
Regarding portainer support see #424
Infos
Expected behavior
Rails Shell should be opened
Actual behavior
Steps to reproduce the behavior
docker compose exec zammad-railsserver /bin/bash rails c