---
version: '2'

services:
  drupal:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - ".:/var/www/html/modules/custom/webform_submission_change_history"
      - "./docker-resources:/docker-resources"
    ports:
      - "80"
    links:
      - mysql:mysql
    working_dir: /var/www/html/modules/custom/webform_submission_change_history

  # Database server
  mysql:
    image: mysql:5
    environment:
      MYSQL_DATABASE: drupal
      MYSQL_ROOT_PASSWORD: drupal
      MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
