Last active
September 17, 2020 17:16
-
-
Save dbwest/b6a6b6fcc46aaf4edc80b4b86b0fec5d to your computer and use it in GitHub Desktop.
This file contains 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
version: "3.7" | |
services: | |
zalenium: | |
image: dosel/zalenium | |
user: seluser:<gid> # required when running in a swarm without sudo - use the <gid> of docker group of swarm | |
hostname: zalenium | |
deploy: | |
placement: | |
constraints: | |
- node.role == manager | |
ports: | |
- "4444:4444" | |
networks: | |
- zalenium # attachable overlay network to use | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /tmp/videos:/home/seluser/videos | |
environment: | |
- PULL_SELENIUM_IMAGE=true | |
- ZALENIUM_PROXY_CLEANUP_TIMEOUT=1800 | |
command: ["start", "--swarmOverlayNetwork", "STACK_zalenium", "--videoRecordingEnabled", "false"] | |
networks: | |
zalenium: | |
driver: overlay | |
attachable: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment