You are here

docker-compose.yml in UI Patterns 8

File

docker-compose.yml
View source
  1. version: "2"
  2. services:
  3. mariadb:
  4. image: wodby/mariadb:10.3-3.8.4
  5. stop_grace_period: 30s
  6. environment:
  7. MYSQL_ROOT_PASSWORD: password
  8. MYSQL_DATABASE: drupal
  9. MYSQL_USER: drupal
  10. MYSQL_PASSWORD: drupal
  11. php:
  12. image: wodby/drupal-php:${TRAVIS_PHP_VERSION}-4.15.9
  13. environment:
  14. DB_HOST: mariadb
  15. DB_USER: drupal
  16. DB_PASSWORD: drupal
  17. DB_NAME: drupal
  18. DB_DRIVER: mysql
  19. PHP_XDEBUG: 1
  20. PHP_XDEBUG_DEFAULT_ENABLE: 1
  21. PHP_XDEBUG_REMOTE_CONNECT_BACK: 1
  22. PHP_XDEBUG_REMOTE_HOST: "10.254.254.254"
  23. PHP_XDEBUG_IDEKEY: "PHPSTORM"
  24. PHP_IDE_CONFIG: "serverName=ui_patterns"
  25. volumes:
  26. - ./:/var/www/html
  27. nginx:
  28. image: wodby/nginx:1.15-5.0.0
  29. depends_on:
  30. - php
  31. environment:
  32. NGINX_STATIC_OPEN_FILE_CACHE: "off"
  33. NGINX_ERROR_LOG_LEVEL: debug
  34. NGINX_BACKEND_HOST: php
  35. NGINX_SERVER_ROOT: /var/www/html/build
  36. NGINX_VHOST_PRESET: drupal8
  37. volumes:
  38. - ./:/var/www/html
  39. ports:
  40. - "8080:80"
  41. # If you would like to see what is going on you can run the following on your host:
  42. # docker run --rm -p 4444:4444 -p 5900:5900 --network="host" selenium/standalone-chrome-debug:latest
  43. # Newer version of this image might run into this issue:
  44. # @link https://github.com/elgalu/docker-selenium/issues/20
  45. selenium:
  46. image: selenium/standalone-chrome-debug:3.11
  47. expose:
  48. - '4444'
  49. environment:
  50. - DISPLAY=:99
  51. - SE_OPTS=-debug
  52. - SCREEN_WIDTH=1280
  53. - SCREEN_HEIGHT=800
  54. - VNC_NO_PASSWORD=1
  55. ports:
  56. - '4444:4444'
  57. - "5900:5900"
  58. volumes:
  59. - /dev/shm:/dev/shm
  60. volumes:
  61. codebase: