diff --git a/docker-compose.yml b/.docker/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to .docker/docker-compose.yml diff --git a/README_SETUP.md b/README_SETUP.md index 95f975d031ded904b2656230f5ec72d98447a7b6..4eb3ec02eab4bf22f14f4bcc2fef758763cf2de8 100644 --- a/README_SETUP.md +++ b/README_SETUP.md @@ -87,6 +87,18 @@ with the then current version of the stored entities. * Alternatively, to run the tests in a containerized MariaDB instance, run `make test-docker`, followed by `make test-docker-stop`. + +### Running in a Docker Container +You can use `.docker/docker-compose.yml` to start a docker container +(`docker-compose -f .docker/docker-compose.yml up -d`) that runs +mariadb and you can connect to it with +`mariadb -h localhost -P3306 -u caosdb -prandom1234 caosdb`. You need appropriate +settings in `.config`. +Due to [a Bug](https://gitlab.com/linkahead/linkahead-mariadbbackend/-/issues/33) +`MYSQL_CMD="mariadb -h localhost -P3306"` and +`DATABASE_USER_HOST_LIST=%,` + + ### Troubleshooting #### MySQL has failing tests