docker-compose.yml in Configuration Split 2.0.x
File
docker-compose.yml
View source
- version: "3.1"
-
- services:
- # More info at https://github.com/wodby/php
- php:
- image: wodby/php:7.4-4.16.2
- container_name: "config_split_php"
- environment:
- # 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.
- COMPOSER: composer.dev.json
- PHP_SENDMAIL_PATH: /dev/null
- SIMPLETEST_BASE_URL: http://${PROJECT_BASE_URL-config_split.local}
- SIMPLETEST_DB: 'mysql://drupal:drupal@mariadb/drupal'
- # MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://selenium:4444/wd/hub"]'
- # MINK_DRIVER_ARGS_WEBDRIVER: '["firefox", null, "http://selenium:4444/wd/hub"]'
- PHP_FPM_USER: wodby
- PHP_FPM_GROUP: wodby
- PHP_OPCACHE_PRELOAD_USER: wodby
- volumes:
- - ./:/var/www/html:cached
- - ./.docker/zz-php.ini:/usr/local/etc/php/conf.d/zz-php.ini
-
- nginx:
- image: wodby/nginx:1.19-5.10.5
- container_name: "config_split_nginx"
- depends_on:
- - php
- environment:
- NGINX_STATIC_OPEN_FILE_CACHE: "off"
- NGINX_ERROR_LOG_LEVEL: debug
- NGINX_BACKEND_HOST: php
- NGINX_SERVER_ROOT: /var/www/html/web
- NGINX_VHOST_PRESET: drupal8
- volumes:
- - ./:/var/www/html:cached
- labels:
- - "traefik.http.routers.config_split_apache.rule=Host(`${PROJECT_BASE_URL-config_split.local}`)"
- networks:
- default:
- aliases:
- - ${PROJECT_BASE_URL-config_split.local}
-
- # More info at https://github.com/wodby/mariadb
- mariadb:
- image: wodby/mariadb:${MARIADB_TAG-10.3}
- container_name: "config_split_mariadb"
- stop_grace_period: 30s
- environment:
- MYSQL_ROOT_PASSWORD: password
- MYSQL_DATABASE: drupal
- MYSQL_USER: drupal
- MYSQL_PASSWORD: drupal
- # volumes:
- # - mariadb-datavolume:/var/lib/mysql
- # ports:
- # - '3005:3306'
-
- # More info at https://github.com/wodby/postgres
- # postgres:
- # image: wodby/postgres:${POSTGRES_TAG-10.5}
- # stop_grace_period: 30s
- # environment:
- # POSTGRES_PASSWORD: password
- # POSTGRES_DB: db
- # POSTGRES_USER: root
- # volumes:
- # - postgres-datavolume:/var/lib/postgresql/data
- # ports:
- # - '5532:5432'
-
- # https://gorannikolovski.com/blog/docker4drupal-and-functional-javascript-tests
- chrome:
- image: drupalci/webdriver-chromedriver:production
- ulimits:
- core:
- soft: -1
- hard: -1
- cap_add:
- - SYS_ADMIN
- volumes:
- - /dev/shm:/dev/shm
- entrypoint:
- - chromedriver
- - "--no-sandbox"
- - "--log-path=/tmp/chromedriver.log"
- - "--verbose"
- - "--whitelisted-ips="
-
- #data volumes https://docs.docker.com/storage/volumes/
- #volumes:
- # mariadb-datavolume:
- # postgres-datavolume: