generated from typerefinery-ai/template-electron-vuex-vuetify
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.4 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
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
version: "3.9"
services:
server:
image: node:latest
hostname: server
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 10s
timeout: 5s
retries: 60
start_period: 60s
volumes:
- ./:/build/source
- /dev/shm:/dev/shm
working_dir: /build/source
entrypoint: ""
environment:
- NODE_OPTIONS='--max_old_space_size=4096'
command: "/bin/bash -c 'npm i && npm run build && npm run preview'"
profiles:
- testing
networks:
default:
aliases:
- server
# # run tests
cypress:
image: cypress/included:10.0.1
working_dir: /source
volumes:
- ./:/source
- /dev/shm:/dev/shm
environment:
- CYPRESS_BASE_URL=http://server:8080
- NODE_OPTIONS='--max_old_space_size=4096'
command: run
profiles:
- testing
depends_on:
server:
condition: service_healthy
networks:
- default
reports:
image: node:latest
entrypoint: ""
command: "/bin/bash -c 'npm run report:merge && npm run report:generate && npm run report:moveScreenshots && npm run report:moveVideos && npm run report:moveData'"
working_dir: /build/source
volumes:
- ./:/build/source
environment:
- NODE_OPTIONS='--max_old_space_size=4096'
profiles:
- reports
networks:
default:
aliases:
- reports
networks:
default: