July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, we need to prepare our baseline code, a process very similar to that under previous chapters. Let's follow these steps:
Copy all of the content from the chapter-08 folder.
Rename the folder to chapter-08.
Delete the storage-db folder.
Now, let's make some changes to the docker-compose.yml file, to fit a new database and server containers.
Open docker-compose.yml and replace the contents with the following code:
version: "3.1"services: mysql: image: mysql:5.7 container_name: chapter-08-mysql working_dir: /application volumes: - .:/application - ./storage-db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=123456 - MYSQL_DATABASE=chapter-08 - MYSQL_USER=chapter-08 - MYSQL_PASSWORD=123456 ports: ...
Read now
Unlock full access