test Drupal site working on Koality Theme Builder
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
1.9 KiB

  1. # Basic LAMP stack
  2. version: "2.1"
  3. services:
  4. # Web
  5. web:
  6. hostname: web
  7. image: docksal/web:2.1-apache2.4
  8. volumes:
  9. - project_root:/var/www:ro,nocopy # Project root volume
  10. labels:
  11. - io.docksal.virtual-host=${VIRTUAL_HOST},*.${VIRTUAL_HOST}
  12. - io.docksal.project-root=${PROJECT_ROOT}
  13. environment:
  14. - APACHE_DOCUMENTROOT=/var/www/${DOCROOT:-docroot}
  15. - APACHE_BASIC_AUTH_USER
  16. - APACHE_BASIC_AUTH_PASS
  17. depends_on:
  18. - cli
  19. dns:
  20. - ${DOCKSAL_DNS1}
  21. - ${DOCKSAL_DNS2}
  22. # DB
  23. db:
  24. hostname: db
  25. image: docksal/db:1.1-mysql-5.6
  26. ports:
  27. - "${MYSQL_PORT_MAPPING:-3306}"
  28. volumes:
  29. - project_root:/var/www:ro,nocopy # Project root volume
  30. - ${PROJECT_ROOT}/db:/docker-entrypoint-initdb.d:ro
  31. environment:
  32. - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
  33. - MYSQL_USER=${MYSQL_USER:-user}
  34. - MYSQL_PASSWORD=${MYSQL_PASSWORD:-user}
  35. - MYSQL_DATABASE=${MYSQL_DATABASE:-default}
  36. dns:
  37. - ${DOCKSAL_DNS1}
  38. - ${DOCKSAL_DNS2}
  39. # CLI - Used for all console commands and tools.
  40. cli:
  41. hostname: cli
  42. image: docksal/cli:2.4-php7.2
  43. volumes:
  44. - project_root:/var/www:rw,nocopy # Project root volume
  45. - docksal_ssh_agent:/.ssh-agent:ro # Shared ssh-agent socket
  46. environment:
  47. - HOST_UID
  48. - HOST_GID
  49. - DOCROOT
  50. - XDEBUG_ENABLED=${XDEBUG_ENABLED:-0}
  51. - XDEBUG_CONFIG=remote_connect_back=0 remote_host=${DOCKSAL_HOST_IP} # Point xdebug to the host IP
  52. - DATABASE_NAME
  53. - DATABASE_USERNAME
  54. - DATABASE_PASSWORD
  55. - DATABASE_HOST
  56. - DRUPAL_TRUSTED_HOSTS=${VIRTUAL_HOST}
  57. - SITE_ENV
  58. dns:
  59. - ${DOCKSAL_DNS1}
  60. - ${DOCKSAL_DNS2}
  61. #
  62. # solr:
  63. # extends:
  64. # file: ${HOME}/.docksal/stacks/services.yml
  65. # service: solr
  66. # image: docksal/solr:7.5
  67. # environment:
  68. # SOLR_DEFAULT_CONFIG_SET: search_api_solr_8.x-2.1