You are here

docker-compose.yml in Configuration Split 2.0.x

Same filename and directory in other branches
  1. 8 docker-compose.yml

File

docker-compose.yml
View source
  1. version: "3.1"
  2. services:
  3. # More info at https://github.com/wodby/php
  4. php:
  5. image: wodby/php:7.4-4.16.2
  6. container_name: "config_split_php"
  7. environment:
  8. # We set the composer variable so that composer uses the dev file. The drupal CI can not deal with having drupal as a dev-dependency.
  9. COMPOSER: composer.dev.json
  10. PHP_SENDMAIL_PATH: /dev/null
  11. SIMPLETEST_BASE_URL: http://${PROJECT_BASE_URL-config_split.local}
  12. SIMPLETEST_DB: 'mysql://drupal:drupal@mariadb/drupal'
  13. # MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://selenium:4444/wd/hub"]'
  14. # MINK_DRIVER_ARGS_WEBDRIVER: '["firefox", null, "http://selenium:4444/wd/hub"]'
  15. PHP_FPM_USER: wodby
  16. PHP_FPM_GROUP: wodby
  17. PHP_OPCACHE_PRELOAD_USER: wodby
  18. volumes:
  19. - ./:/var/www/html:cached
  20. - ./.docker/zz-php.ini:/usr/local/etc/php/conf.d/zz-php.ini
  21. nginx:
  22. image: wodby/nginx:1.19-5.10.5
  23. container_name: "config_split_nginx"
  24. depends_on:
  25. - php
  26. environment:
  27. NGINX_STATIC_OPEN_FILE_CACHE: "off"
  28. NGINX_ERROR_LOG_LEVEL: debug
  29. NGINX_BACKEND_HOST: php
  30. NGINX_SERVER_ROOT: /var/www/html/web
  31. NGINX_VHOST_PRESET: drupal8
  32. volumes:
  33. - ./:/var/www/html:cached
  34. labels:
  35. - "traefik.http.routers.config_split_apache.rule=Host(`${PROJECT_BASE_URL-config_split.local}`)"
  36. networks:
  37. default:
  38. aliases:
  39. - ${PROJECT_BASE_URL-config_split.local}
  40. # More info at https://github.com/wodby/mariadb
  41. mariadb:
  42. image: wodby/mariadb:${MARIADB_TAG-10.3}
  43. container_name: "config_split_mariadb"
  44. stop_grace_period: 30s
  45. environment:
  46. MYSQL_ROOT_PASSWORD: password
  47. MYSQL_DATABASE: drupal
  48. MYSQL_USER: drupal
  49. MYSQL_PASSWORD: drupal
  50. # volumes:
  51. # - mariadb-datavolume:/var/lib/mysql
  52. # ports:
  53. # - '3005:3306'
  54. # More info at https://github.com/wodby/postgres
  55. # postgres:
  56. # image: wodby/postgres:${POSTGRES_TAG-10.5}
  57. # stop_grace_period: 30s
  58. # environment:
  59. # POSTGRES_PASSWORD: password
  60. # POSTGRES_DB: db
  61. # POSTGRES_USER: root
  62. # volumes:
  63. # - postgres-datavolume:/var/lib/postgresql/data
  64. # ports:
  65. # - '5532:5432'
  66. # https://gorannikolovski.com/blog/docker4drupal-and-functional-javascript-tests
  67. chrome:
  68. image: drupalci/webdriver-chromedriver:production
  69. ulimits:
  70. core:
  71. soft: -1
  72. hard: -1
  73. cap_add:
  74. - SYS_ADMIN
  75. volumes:
  76. - /dev/shm:/dev/shm
  77. entrypoint:
  78. - chromedriver
  79. - "--no-sandbox"
  80. - "--log-path=/tmp/chromedriver.log"
  81. - "--verbose"
  82. - "--whitelisted-ips="
  83. #data volumes https://docs.docker.com/storage/volumes/
  84. #volumes:
  85. # mariadb-datavolume:
  86. # postgres-datavolume: