July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, it's time to configure our compose file and mount all the containers that we will use in our application. We will build this file step by step, so the first thing to do is create the file:
version: "3.1"services:mysql: image: mysql:5.7 container_name: chapter-04-mysql working_dir: /application volumes: - .:/application environment: - MYSQL_ROOT_PASSWORD=123456 - MYSQL_DATABASE=chapter-04 - MYSQL_USER=chapter-04 - MYSQL_PASSWORD=123456 ports: - "8083:3306"
The first block of code here is to configure the MySQL server. We are using the official MySQL ...
Read now
Unlock full access