Skip to content

Instantly share code, notes, and snippets.

@dbwest
Last active September 17, 2020 17:16
Show Gist options
  • Save dbwest/b6a6b6fcc46aaf4edc80b4b86b0fec5d to your computer and use it in GitHub Desktop.
Save dbwest/b6a6b6fcc46aaf4edc80b4b86b0fec5d to your computer and use it in GitHub Desktop.
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