diff --git a/README.md b/README.md index 0bbf968..21a3933 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modified to - [Use phpMyAdmin](#Use-phpMyAdmin) - [Use pgAdmin](#Use-pgAdmin) - [Use ElasticSearch](#Use-ElasticSearch) + - [Use Selenium](#Use-Selenium) - [CodeIgniter](#CodeIgniter): - [Install CodeIgniter](#Install-CodeIgniter) - [Misc](#Misc) @@ -1058,7 +1059,17 @@ docker exec {container-name} /usr/share/elasticsearch/bin/plugin install delete- docker restart {container-name} ``` +
+ +### Use Selenium +1 - Run the Selenium Container (`selenium`) with the `docker-compose up` command. Example: + +```bash +docker-compose up -d selenium +``` + +2 - Open your browser and visit the localhost on port **4444** at the following URL: `http://localhost:4444/wd/hub` diff --git a/docker-compose.yml b/docker-compose.yml index eec861e..0e06bd8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -324,6 +324,13 @@ services: links: - php-fpm +### Selenium Container ######################################### + + selenium: + build: ./selenium + ports: + - "4444:4444" + ### Volumes Setup ########################################### volumes: diff --git a/selenium/Dockerfile b/selenium/Dockerfile new file mode 100644 index 0000000..bc98b68 --- /dev/null +++ b/selenium/Dockerfile @@ -0,0 +1,5 @@ +FROM selenium/standalone-chrome + +MAINTAINER Edmund Luong + +EXPOSE 4444 \ No newline at end of file