-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
66 lines (65 loc) · 1.78 KB
/
docker-compose.dev.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
version: "3.7"
services:
gateway:
ports:
- ${GATEWAY_PORT-4040:3000}
volumes:
- ./services/gateway:/usr/src/services/gateway
- ./modules/config:/usr/src/modules/config
- ./modules/privileges:/usr/src/modules/privileges
react-app:
ports:
- ${REACT_APP_PORT-4321:4321}
environment:
- BABEL_ENV=coverage
volumes:
- ./apps/react-app:/usr/src/apps/react-app
- ./modules/react-ui:/usr/src/modules/react-ui
- ./modules/config:/usr/src/modules/config
- ./modules/privileges:/usr/src/modules/privileges
material-app:
ports:
- ${REACT_APP_PORT-4322:4322}
environment:
- BABEL_ENV=coverage
volumes:
- ./apps/material-app:/usr/src/apps/material-app
- ./modules/config:/usr/src/modules/config
- ./modules/privileges:/usr/src/modules/privileges
postgres:
environment:
POSTGRES_PASSWORD: fooBar
POSTGRES_USER: lecstor
POSTGRES_DB: lecstor
ports:
- "5432:5432"
rabbitmq:
ports:
- "15672:15672"
- "5672:5672"
cypress:
build:
context: ./
dockerfile: ./tools/cypress/Dockerfile
depends_on:
- react-app
environment:
# pass base url with internal docker app url
- CYPRESS_baseUrl=http://react-app:4321
# - CYPRESS_baseUrl=http://material-app:4322
# - CYPRESS_baseUrl=http://host.docker.internal:4321
# - DEBUG=cypress:*
# - CI=0
# share the current folder as volume to avoid copying
working_dir: /e2e
volumes:
- ./tools/cypress:/e2e
# command: ["cypress", "run", "--headed"]
# command: ["./node_modules", ".bin", "cypress", "run"]
# entrypoint:
# - "../wait-for.sh"
# - "react-app:4321"
# - "--"
# - "npx"
# - "cypress"
# - "run"