Skip to content

Instantly share code, notes, and snippets.

@gabrielke
Last active September 28, 2019 22:32
Show Gist options
  • Select an option

  • Save gabrielke/0c7c1542c3a5abdf37cf1df8eb54f97f to your computer and use it in GitHub Desktop.

Select an option

Save gabrielke/0c7c1542c3a5abdf37cf1df8eb54f97f to your computer and use it in GitHub Desktop.
Basic selenoid install with docker-compose
{
"chrome": {
"default": "77.0",
"versions": {
"76.0": {
"image": "selenoid/chrome:76.0",
"port": "4444",
"path": "/"
},
"77.0": {
"image": "selenoid/chrome:77.0",
"port": "4444",
"path": "/"
}
}
},
"firefox": {
"default": "69.0",
"versions": {
"68.0": {
"image": "selenoid/firefox:68.0",
"port": "4444",
"path": "/wd/hub"
},
"69.0": {
"image": "selenoid/firefox:69.0",
"port": "4444",
"path": "/wd/hub"
}
}
},
"opera": {
"default": "63.0",
"versions": {
"62.0": {
"image": "selenoid/opera:62.0",
"port": "4444",
"path": "/"
},
"63.0": {
"image": "selenoid/opera:63.0",
"port": "4444",
"path": "/"
}
}
}
}
#
# need to create a network in advance with "docker network create backend"
#
#
version: "3.5"
services:
selenoid:
image: "aerokube/selenoid"
volumes:
- "/etc/selenoid/:/etc/selenoid/:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- "/etc/selenoid/logs/:/opt/selenoid/logs/"
command: ["-listen", ":4444", "-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video", "-log-output-dir", "/opt/selenoid/logs", "-save-all-logs", "-container-network", "backend"]
ports:
- "4444:4444"
networks:
- backend
selenoid-ui:
image: "aerokube/selenoid-ui"
depends_on:
- selenoid
ports:
- "8080:8080"
networks:
- backend
command: ["--selenoid-uri", "http://selenoid:4444"]
networks:
backend:
external:
name: backend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment