-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.compose.yml
47 lines (45 loc) · 916 Bytes
/
cypress.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
41
42
43
44
45
46
47
version: '3'
services:
cwa:
container_name: cy-cwa
build:
context: .
dockerfile: cypress.cwa.Dockerfile
args:
- REACT_APP_GRAPHQL=//sa:28081
image: explorer-cwa-cypress
ports:
- 28080:28080
environment:
- PORT=28080
entrypoint:
- serve
command: -n
sa:
container_name: cy-sa
build:
context: .
dockerfile: cypress.sa.Dockerfile
image: explorer-sa-cypress
ports:
- 28081:28081
environment:
- PORT=28081
command: node -r dotenv/config build/app.js
cypress:
container_name: cypress
build:
context: .
dockerfile: cypress.Dockerfile
image: cypress
depends_on:
- cwa
- sa
environment:
- CYPRESS_baseUrl=http://cwa:28080
- CYPRESS_graphql=http://sa:28081
entrypoint:
- npm
command: run test
volumes:
- ./cypress:/www