You are here

docker-compose.yml in Podcast (using Views) 8

File

docker-compose.yml
View source
  1. version: "3.1"
  2. services:
  3. # More info at https://github.com/wodby/php
  4. drupal:
  5. image: wodby/php:${PHP_TAG-7.4-dev}
  6. command: composer webserver
  7. environment:
  8. PHP_SENDMAIL_PATH: /dev/null
  9. COLUMNS: ${COLUMNS-80} # Set 80 columns for docker exec -it.
  10. ## Read instructions at https://wodby.com/docs/stacks/drupal/local/#debugging-cli-requests
  11. # The line below is commented out because the mere presence of that env variable loads XDebug regardless of the value.
  12. # Enable XDebug when you `up` your container: PHP_XDEBUG=1 docker-compose up -d
  13. # PHP_XDEBUG:
  14. PHP_XDEBUG_DEFAULT_ENABLE:
  15. PHP_IDE_CONFIG:
  16. PHP_XDEBUG_REMOTE_HOST:
  17. PHP_XDEBUG_REMOTE_CONNECT_BACK:
  18. # Specify 'drupal' instead of 127.0.0.1 so that chrome service can reach it.
  19. SIMPLETEST_BASE_URL: http://drupal:8888
  20. SIMPLETEST_DB:
  21. volumes:
  22. - ./:/var/www/html:cached
  23. - ./.docker/zz-php.ini:/usr/local/etc/php/conf.d/zz-php.ini
  24. # ports:
  25. # - '${WEB_PORT-8889}:8888'
  26. # More info at https://github.com/wodby/mariadb
  27. mariadb:
  28. image: wodby/mariadb:${MARIADB_TAG-10.3}
  29. stop_grace_period: 30s
  30. environment:
  31. MYSQL_ROOT_PASSWORD: password
  32. volumes:
  33. - mariadb-datavolume:/var/lib/mysql
  34. # https://gorannikolovski.com/blog/docker4drupal-and-functional-javascript-tests
  35. chrome:
  36. image: drupalci/webdriver-chromedriver:production
  37. ulimits:
  38. core:
  39. soft: -1
  40. hard: -1
  41. cap_add:
  42. - SYS_ADMIN
  43. volumes:
  44. - /dev/shm:/dev/shm
  45. entrypoint:
  46. - chromedriver
  47. - "--no-sandbox"
  48. - "--log-path=/tmp/chromedriver.log"
  49. - "--verbose"
  50. - "--whitelisted-ips="
  51. #data volumes https://docs.docker.com/storage/volumes/
  52. volumes:
  53. mariadb-datavolume:
  54. postgres-datavolume: