In order to setup a fully functional Redmine server via Docker I use the following consolidated command:
docker run \ --detach \ --name redmine \ --link mysql:mysql \ --publish 3000:3000 \ --env="REDMINE_DB_MYSQL: redmine" \ --env="REDMINE_DB_PASSWORD: redmine" \ --volume /Volumes/DATA/Abhinav/Docker/redmine/files:/usr/src/redmine/files \ redmine
This connects my mysql docker instance with sonar and it is able to create tables and start using MySQL properly for storing all it’s data.