Initializing the Database

To initialize the database, populate db.yaml with the following content:

version: "3.3"
services:
  mysql:
    image: mysql:8.0
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PASSWORD: "{Your Password}"
  redis:
    image: 'redis:latest'
    command: redis-server --requirepass {Your Password}
    ports:
      - '6379:6379'

Execute the command below to start the database services using Docker Compose: docker-compose -f ./db.yaml up -d

Last updated