-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.05 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
services:
cypress:
image: cypress/included:13.5.0
volumes:
- ./front:/app
entrypoint: cypress run --project /app
environment:
DOCKER_MODE: "true"
networks:
- cypress
depends_on:
frontend:
condition: service_healthy
backend:
condition: service_healthy
backend:
image: node:latest
working_dir: /app
volumes:
- ./back:/app
command: ["/bin/sh", "-c", "npm install && npm run start"]
environment:
DOCKER_MODE: "true"
networks:
- cypress
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9897/health"]
interval: 5s
timeout: 120s
retries: 20
frontend:
image: node:latest
working_dir: /app
volumes:
- ./front:/app
command: ["/bin/sh", "-c", "npm install && npm run dev"]
environment:
VITE_DOCKER_MODE: "true"
networks:
- cypress
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9898"]
interval: 5s
timeout: 120s
retries: 20
networks:
cypress: