Posts

Showing posts from January, 2018

Connecting native Database-Client to Docker SQL-Container using Docker-Toolbox

Image
Attention : This post only handles "Docker Toolbox". If possible use "Docker for Windows"! "Docker Toolbox" is a workaround for Windows Home that doesn't provide the "Hyper-V"-Feature. In one of our projects, my team is developing a new dockerized plattform. Dockerized means, that we split the infrastructure into seperate images like web, php and database. My team is developing on the ubuntu os with a native docker client. I’m working on a windows 10 using the docker-toolbox . Overall we have central docker-compose scripts to combine all images to one working infrastructure. Following a snippet of our database (mariadb) composer configuration: mysql: image : mariadb: 10.1 ports: - "127.0.0.1:3306:3306" environment: MYSQL_DATABASE: <projectname> MYSQL_ROOT_PASSWORD: pw volumes: - <projectname>-mysqldata:/var/lib/mysql networks: - back logging: options: