You are here

docker-compose.yml in Realistic Dummy Content 8.2

Same filename and directory in other branches
  1. 7.2 developer/docker-compose.yml
developer/docker-compose.yml

File

developer/docker-compose.yml
View source
  1. # This is where we define how to set up a complete environment with
  2. # several linked containers to serve the new and old sites with webservers
  3. # and database servers. Used during the migration process.
  4. version: '2'
  5. services:
  6. drupal8:
  7. build:
  8. context: .
  9. dockerfile: frameworks/drupal8/Dockerfile
  10. ports:
  11. - "80"
  12. volumes:
  13. - ../:/var/www/html/modules/realistic_dummy_content
  14. - ./tmp/drupal8:/var/www/html/sites/default
  15. links:
  16. - database:database
  17. working_dir: /var/www/html
  18. restart: always
  19. drupal7:
  20. build:
  21. context: .
  22. dockerfile: frameworks/drupal7/Dockerfile
  23. ports:
  24. - "80"
  25. volumes:
  26. - ../:/var/www/html/sites/all/modules/realistic_dummy_content
  27. - ./tmp/drupal7:/var/www/html/sites/default
  28. links:
  29. - database:database
  30. working_dir: /var/www/html
  31. restart: always
  32. database:
  33. image: mysql:5
  34. environment:
  35. MYSQL_USER: drupal
  36. MYSQL_PASSWORD: drupal
  37. MYSQL_DATABASE: drupal
  38. MYSQL_ROOT_PASSWORD: ''
  39. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  40. ports:
  41. - "3306"
  42. restart: always