You are here

docker-compose.yml in Realistic Dummy Content 3.x

File

docker-compose.yml
View source
  1. ---
  2. # This file is used by developers who use ./scripts/deploy.sh to set up a local
  3. # development environment to help with development this module.
  4. version: '2'
  5. services:
  6. drupal:
  7. build:
  8. context: .
  9. dockerfile: Dockerfile8
  10. volumes:
  11. - "sitesdefault:/var/www/html/sites/default"
  12. - ".:/var/www/html/modules/custom/realistic_dummy_content"
  13. ports:
  14. - "80"
  15. links:
  16. - mysql:mysql
  17. working_dir: /var/www/html
  18. drupal8drush8:
  19. build:
  20. context: .
  21. dockerfile: Dockerfile8drush8
  22. volumes:
  23. - "sitesdefault:/var/www/html/sites/default"
  24. - ".:/var/www/html/modules/custom/realistic_dummy_content"
  25. ports:
  26. - "80"
  27. links:
  28. - mysql:mysql
  29. working_dir: /var/www/html
  30. mysql:
  31. image: mysql:5
  32. environment:
  33. MYSQL_DATABASE: drupal
  34. MYSQL_ROOT_PASSWORD: drupal
  35. MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
  36. volumes:
  37. sitesdefault:
  38. # Specifying the network name makes it predictable on all environments,
  39. # for example when we run browser tests.
  40. # See https://github.com/docker/compose/issues/3736.
  41. networks:
  42. default:
  43. external:
  44. name: realistic_dummy_content_default