Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #161 from aerokube/docs
Browse files Browse the repository at this point in the history
Update docker-compose.adoc
  • Loading branch information
vania-pooh authored Jul 11, 2017
2 parents 71517bb + 3f7be0a commit 8045d46
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions docs/docker-compose.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
== Selenoid with Docker Compose

In order to start Selenoid with UI using https://docs.docker.com/compose/[Docker Compose] you need to enable bridge network mode:
To avoid network problems between browser drivers inside containers and Selenoid when using https://docs.docker.com/compose/[Docker Compose] for combining with another services (such as UI or ggr) you need to enable *bridge* network mode for all services:

```
version: '2'
[source,yaml]
----
version: '3'
services:
selenoid:
network_mode: bridge
Expand All @@ -12,14 +13,7 @@ services:
- "$PWD:/etc/selenoid"
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "4444:4444"
selenoid-ui:
links:
- selenoid
network_mode: bridge
image: aerokube/selenoid-ui
ports:
- "8080:8080"
command: -selenoid-uri http://selenoid:4444
```
If you only need Selenoid - just remove `selenoid-ui` section.
- "4444:4444"
----

Complete example with Selenoid UI can be found in http://aerokube.com/selenoid-ui/latest/#_with_docker_compose[Selenoid UI Documentation]

0 comments on commit 8045d46

Please sign in to comment.