# Use root/example as user/password credentials
version: '3.1'

services:

  db:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    volumes:
      - ./sql:/docker-entrypoint-initdb.d
    environment:
      MYSQL_ROOT_PASSWORD: example

  webserver:
    environment:
      DB_CHOICE: db
    image: devops
    restart: always
    ports:
      - 80:8080
    depends_on:
      - db
