You are here

docker-compose.yml in Devel 8.3

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