Skip to content

Instantly share code, notes, and snippets.

@andypost
Created October 6, 2023 23:52
Show Gist options
  • Save andypost/02691f36cf5989c98e03a479ca77f8ae to your computer and use it in GitHub Desktop.
Save andypost/02691f36cf5989c98e03a479ca77f8ae to your computer and use it in GitHub Desktop.
Drupal 10 core dev
version: "3.4"
services:
php:
# image: drupalci/php-8.2-apache:production
image: skilldlabs/php:82-unit-dev
# image: skilldlabs/php:83-unit-dev
container_name: core
restart: always
working_dir: /var/www/html/web
volumes:
- ./:/var/www/html/web
- /home/andypost/.cache/composer:/home/www-data/.composer/cache
environment:
PHP_IDE_CONFIG: serverName=server_name
COMPOSER_CACHE_DIR: /home/www-data/.composer/cache
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless"]}}, "http://172.30.1.3:4444"]'
SIMPLETEST_BASE_URL: http://172.30.1.2
SIMPLETEST_DB: sqlite://./db/tests.db
IDE_PHPUNIT_CUSTOM_LOADER: vendor/autoload.php
# BROWSERTEST_OUTPUT_DIRECTORY: sites/simpletest
networks:
front:
ipv4_address: 172.30.1.2
chrome:
# image: drupalci/webdriver-chromedriver:production
image: zenika/alpine-chrome:with-chromedriver
container_name: "chrome"
ulimits:
core:
soft: -1
hard: -1
cap_add:
- SYS_ADMIN
volumes:
- /dev/shm:/dev/shm
ports:
- "4444:4444"
entrypoint:
- chromedriver
- "--port=4444"
- "--no-sandbox"
- "--allowed-ips="
- "--allowed-origins=*"
# - "--log-path=/tmp/chromedriver.log"
# - "--log-level=INFO"
- "--log-level=WARNING"
# - "--verbose"
networks:
front:
ipv4_address: 172.30.1.3
networks:
front:
driver: bridge
ipam:
driver: default
config:
- subnet: "172.30.1.0/24"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment