July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, we need to prepare our baseline code, a process very similar to that of previous chapters. Follow these steps:
Now, let's make some changes to the docker-compose.yml file, to fit a new database and server containers.
version: "3.1"services: mysql: image: mysql:5.7 container_name: chapter-07-mysql working_dir: /application volumes: - .:/application - ./storage-db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=123456 - MYSQL_DATABASE=chapter-06 - MYSQL_USER=chapter-07 - MYSQL_PASSWORD=123456 ports: - "8083:3306" webserver: ...
Read now
Unlock full access