From 3f7be0a8a13ce4c1bb94d52aeaf407c89c5d5e50 Mon Sep 17 00:00:00 2001 From: Kirill Merkushev Date: Tue, 11 Jul 2017 19:00:29 +0300 Subject: [PATCH] Update docker-compose.adoc --- docs/docker-compose.adoc | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/docs/docker-compose.adoc b/docs/docker-compose.adoc index 5ed59fc2..89179d67 100644 --- a/docs/docker-compose.adoc +++ b/docs/docker-compose.adoc @@ -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 @@ -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]