This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
40 lines (38 loc) · 1.54 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3'
services:
# this container will run Cypress test using built-in Electron browser
e2e-electron:
image: "cypress/included:4.1.0"
# mount the host directory cypress and the file cypress.json as
# volumes within the container "e2e" container
#
# this means that:
# 1. anything that Cypress writes to these folders (e.g., screenshots,
# videos) appears also on the Docker host's filesystem
# 2. any change that the developer applies to Cypress files on the host
# machine immediately takes effect within the e2e container (no docker
# rebuild required).
volumes:
- ./cypress:/cypress
- ./cypress.json:/cypress.json
# this container will run Cypress test using Chrome browser
e2e-chrome:
image: "cypress/included:4.1.0"
# container_name: cypress
# "cypress/included" images have entrypoint set to globally installed cypress
# so the command can simply add any arguments
command: "--browser chrome"
volumes:
- ./cypress:/cypress
- ./cypress.json:/cypress.json
# this container will run Cypress test using Firefox browser
# note that both Chrome and Firefox browsers were pre-installed in the Docker image
e2e-firefox:
image: "cypress/included:4.1.0"
command: "--browser firefox --config video=false"
# if you want to debug FF run, pass DEBUG variable like
environment:
- DEBUG=cypress:server:browsers:firefox-util,cypress:server:util:process_profiler
volumes:
- ./cypress:/cypress
- ./cypress.json:/cypress.json