Created
May 6, 2020 11:11
-
-
Save lucassmacedo/1a15c73b76ec6d0c1442308c443dcb51 to your computer and use it in GitHub Desktop.
Docker Container Multiple Ips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To execute this docker-compose yml file use `docker-compose -f <file_name> up` | |
# Add the `-d` flag at the end for detached execution | |
version: "3" | |
services: | |
selenium-hub1: | |
image: selenium/hub:3.141.59-20200409 | |
container_name: selenium-hub1 | |
ports: | |
- "4444:4444" | |
environment: | |
- GRID_MAX_SESSION=10 | |
networks: | |
test_network: | |
ipv4_address: 166.16.202.25 | |
selenium-hub2: | |
image: selenium/hub:3.141.59-20200409 | |
container_name: selenium-hub2 | |
ports: | |
- "44445:4444" | |
environment: | |
- GRID_MAX_SESSION=10 | |
networks: | |
test_network: | |
ipv4_address: 166.16.202.26 | |
chrome: | |
image: selenium/node-chrome:3.141.59-20200409 | |
volumes: | |
- /dev/shm:/dev/shm | |
depends_on: | |
- selenium-hub1 | |
- selenium-hub2 | |
environment: | |
- HUB_HOST=selenium-hub | |
- HUB_PORT=4444 | |
- NODE_MAX_INSTANCES=10 | |
- NODE_MAX_SESSION=10 | |
firefox: | |
image: selenium/node-firefox:3.141.59-20200409 | |
volumes: | |
- /dev/shm:/dev/shm | |
depends_on: | |
- selenium-hub1 | |
- selenium-hub2 | |
environment: | |
- HUB_HOST=selenium-hub | |
- HUB_PORT=4444 | |
- NODE_MAX_INSTANCES=10 | |
- NODE_MAX_SESSION=10 | |
opera: | |
image: selenium/node-opera:3.141.59-20200409 | |
volumes: | |
- /dev/shm:/dev/shm | |
depends_on: | |
- selenium-hub1 | |
- selenium-hub2 | |
environment: | |
- HUB_HOST=selenium-hub | |
- HUB_PORT=4444 | |
- NODE_MAX_INSTANCES=10 | |
- NODE_MAX_SESSION=10 | |
networks: | |
test_network: | |
ipam: | |
driver: default | |
config: | |
- subnet: 166.16.202.0/26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment