diff --git a/docker/templates/db_data_readme.md b/docker/templates/db_data_readme.md new file mode 100644 index 0000000000000000000000000000000000000000..1c357dbf700b72678c14be0b2e9b1e9d019ccc5e --- /dev/null +++ b/docker/templates/db_data_readme.md @@ -0,0 +1,5 @@ +# TARGET: docker/containers/db-server/var_tmp_db-data/readme.txt + +# Info + +content of `docker/containers/db_server/var_tmp_db-data/` will be visible in the database container as `/var/tmp/db-data/`. It is a helper to transfer/ import sqldumps. diff --git a/docker/templates/docker-compose.yml b/docker/templates/docker-compose.yml index 49dada24acc8e877b3ead1445cd4429a0f01fbb8..3dd092405c63bb49e31295430ea9f1aa4889d302 100644 --- a/docker/templates/docker-compose.yml +++ b/docker/templates/docker-compose.yml @@ -62,8 +62,9 @@ services: MYSQL_PASSWORD: '${MYSQL_PASS}' MYSQL_DATABASE: '${MYSQL_DB}' volumes: - # - ./containers/db-server/db_data:/var/lib/mysql - ./containers/db-server/mariadb/my.cnf:/etc/mysql/conf.d/my.cnf + - ./containers/db-server/mariadb/dot_my.cnf:/root/.my.cnf + - ./containers/db-server/var_tmp_db-data/:/var/tmp/db-data healthcheck: test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD interval: 5s