Last active
August 8, 2022 05:49
-
-
Save andypost/0c5b0fe679b9d036df3d45af18997087 to your computer and use it in GitHub Desktop.
Drupal 8 template for core dev + chromium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.1" | |
services: | |
php: | |
image: skilldlabs/php:8-fpm | |
container_name: core8 | |
restart: always | |
working_dir: /var/www/html/web | |
volumes: | |
- .:/var/www/html/web:z | |
- /home/andypost/.composer:/home/www-data/.composer:z | |
# - ./db/tideways_xhprof.ini:/etc/php7/conf.d/tideways_xhprof.ini:z | |
# - ./db/tideways_xhprof.so.master:/usr/lib/php7/modules/tideways_xhprof.so:z | |
# - ./db/xhprof.ini:/etc/php7/conf.d/xhprof.ini:z | |
# - ./db/xhprof.so:/usr/lib/php7/modules/xhprof.so:z | |
# Uncomment next line if you need PHP Xdebug. | |
# command: php-fpm7 -F -e -d rlimit_core=unlimited -d zend_extension=xdebug.so | |
environment: | |
# MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://chrome:4444/wd/hub"]' | |
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless"]}}, "http://chrome:4444"]' | |
networks: | |
- front | |
nginx: | |
image: skilldlabs/nginx:1.14 | |
container_name: "core8_nginx" | |
restart: always | |
depends_on: | |
- php | |
volumes_from: | |
- php | |
networks: | |
- front | |
# logging: | |
# driver: "journald" | |
# options: | |
# tag: "{{.Name}}" | |
chrome: | |
image: drupalci/webdriver-chromedriver:production | |
ulimits: | |
core: | |
soft: -1 | |
hard: -1 | |
cap_add: | |
- SYS_ADMIN | |
volumes: | |
- /dev/shm:/dev/shm | |
ports: | |
- "4444:4444" | |
entrypoint: | |
- chromedriver | |
- "--port=4444" | |
- "--no-sandbox" | |
# - "--log-path=/tmp/chromedriver.log" | |
- "--log-level=INFO" | |
# - "--verbose" | |
- "--whitelisted-ips=" | |
networks: | |
- front | |
networks: | |
front: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And current
Makefile