September 2019
Intermediate to advanced
668 pages
15h 59m
English
MongoDB and MySQL are declared as follows in the Docker Compose configuration file, docker-compose.yml:
mongodb: image: mongo:3.6.9 mem_limit: 350m ports: - "27017:27017" command: mongod --smallfilesmysql: image: mysql:5.7 mem_limit: 350m ports: - "3306:3306" environment: - MYSQL_ROOT_PASSWORD=rootpwd - MYSQL_DATABASE=review-db - MYSQL_USER=user - MYSQL_PASSWORD=pwd healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-uuser", "-ppwd", "-h", "localhost"] interval: 10s timeout: 5s retries: 10
The following is observed from the preceding code: