Skip to content

Instantly share code, notes, and snippets.

@undertext
Created May 6, 2019 11:24
Show Gist options
  • Save undertext/1a20a801d92ef57d7f52049fed0891e1 to your computer and use it in GitHub Desktop.
Save undertext/1a20a801d92ef57d7f52049fed0891e1 to your computer and use it in GitHub Desktop.
docker-compose-selenium
version: "3"
services:
mariadb:
container_name: "drupal_testing_mariadb"
image: wodby/mariadb
container_name: "mariadb"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
php:
container_name: "drupal_testing_php"
image: wodby/drupal-php
environment:
PHP_FPM_USER: wodby
PHP_FPM_GROUP: wodby
volumes:
- ./:/var/www/html
nginx:
container_name: "drupal_testing_nginx"
image: wodby/nginx
depends_on:
- php
environment:
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html/web
NGINX_VHOST_PRESET: drupal8
volumes:
- ./:/var/www/html
ports:
- "80:80"
chrome_browser:
container_name: "drupal_testing_chrome_browser"
image: selenium/standalone-chrome
ports:
- "4444:4444"
volumes:
- ./:/var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment