Skip to content

Commit

Permalink
Added docker compose file (#48)
Browse files Browse the repository at this point in the history
* Added docker compose file

* Added documentation to use compose file
  • Loading branch information
budtmo authored and SrinivasanTarget committed Jun 12, 2017
1 parent 64a5faf commit 961820f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,10 @@ Appium-Docker-Android can be connected with selenium grid by passing following p
```
$ docker run --privileged -d -p 4723:4723 -e CONNECT_TO_GRID=True -e APPIUM_HOST="127.0.0.1" -e APPIUM_PORT=4723 -e SELENIUM_HOST="172.17.0.1" -e SELENIUM_PORT=4444 -v /dev/bus/usb:/dev/bus/usb --name container-appium appium/appium
```

### Docker compose
There is [an example of compose file](docker-compose.yml) to simulate the connection between selenium hub and appium server mit connected device(s) in docker solution.

```
$ docker-compose up -d
```
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Note: It requires docker-compose 1.6.0+
#
# Usage: docker-compose up -d
version: '2'

services:
# Selenium hub
selenium_hub:
image: selenium/hub:3.4.0
ports:
- 4444:4444

# Appium Docker Android
appium_devices:
image: appium/appium
depends_on:
- selenium_hub
network_mode: "service:selenium_hub"
privileged: true
volumes:
- /dev/bus/usb:/dev/bus/usb
environment:
- CONNECT_TO_GRID=True
- SELENIUM_HOST=selenium_hub

0 comments on commit 961820f

Please sign in to comment.