-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.e2e.yml
68 lines (65 loc) · 1.43 KB
/
docker-compose.e2e.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.5'
services:
ots-share-e2e:
image: ots-share-e2e
build:
context: .
dockerfile: Dockerfile.e2e
container_name: ots-share-e2e
environment:
- DB_URL=mongodb://ots-share-mongo-local-e2e/ots-share
- PURGE_TRIGGER_INTERVAL=1000
command:
- sh
- -c
- "npm start"
expose:
- 80
logging:
driver: json-file
depends_on:
- ots-share-mongo-local-e2e
links:
- ots-share-mongo-local-e2e
restart: on-failure:5
ots-share-mongo-local-e2e:
image: mongo:4.2
container_name: ots-share-mongo-local-e2e
expose:
- 27017
e2e:
image: ots-share-e2e-pw
build:
context: .
dockerfile: Dockerfile.e2e
container_name: ots-share-e2e-pw-run
working_dir: /opt
environment:
- OTS_SHARE_URL=http://ots-share-e2e
depends_on:
- ots-share-e2e
command:
- sh
- -c
- "cd e2e && npm install && npx playwright install-deps && npx playwright install firefox && npm t"
links:
- ots-share-e2e
e2e-dev:
image: ots-share-e2e-pw
container_name: ots-share-e2e-pw-dev
build:
context: .
dockerfile: Dockerfile.e2e
working_dir: /opt
volumes:
- .:/opt
environment:
- OTS_SHARE_URL=http://ots-share-e2e
depends_on:
- ots-share-e2e
command:
- sh
- -c
- "cd e2e && npm install && /bin/bash"
links:
- ots-share-e2e