Skip to content

Fix docker-compose.yml to be usable in more universal contexts

Adding static container names in the compose file allows to use the commands that use container names, as suggested in the docs. E.g. docker-compose exec mobilizon mobilizon_ctl [options] requires the web container to be called "mobilizon". Otherwise the container names assigned might be different.

Switching from ${PWD} to . expects config.exs to be in the same folder as docker-compose.yml. ${PWD} defines the current working directory of the shell, which could be different to the folder of docker-compose-yml (e.g. calling docker-compose up -f /folder/docker-compose-yml and also this env variable might not be available when using sudo docker-compose up ....

This solves the issues of #1148 in the main mobilizon repository (framasoft/mobilizon#1148 (closed))

Edited by Jo Allg

Merge request reports