This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
79 lines (75 loc) · 1.68 KB
/
docker-compose.test.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
69
70
71
72
73
74
75
76
77
78
79
version: "2.4"
services:
nginx:
image: nginx
expose:
- "80"
volumes:
- "./nginx/e2e.conf:/etc/nginx/conf.d/default.conf"
environment:
- TZ=Europe/Paris
- NODE_ENV=test
depends_on:
- "db"
- "front"
- "api"
api:
build:
context: .
dockerfile: ./dockerfile_api
volumes:
- "./api:/home/api"
depends_on:
- "db"
environment:
- TZ=Europe/Paris
- DATABASE_URL=postgres://test-user:test-pass@db:5432/test-db
- COOKIE_SECRET=IAmSoSecret
- SENTRY_ENV=test
- TOKEN_HOST=http://localhost
- EMAIL_KEY=key
- EMAIL_KEY_SECRET=big_secret
- SLACK_WEBHOOK_SU_ZEN_TECH=http://localhost
- API_HOST=https://api-r.es-qvr.fr
- NODE_ENV=test
- ZEN_ENV=test
- WINSTON_ENABLE_LOG=true
front:
image: node:12.16.1
volumes:
- "./front:/home/front"
environment:
- NODE_ENV=test
- REACT_APP_ZEN_ENV=test
- TZ=Europe/Paris
- BUNDLE_TOKEN_ANALYZER=${BUNDLE_TOKEN_ANALYZER}
expose:
- "3000"
command: >
bash -c "cd /home/front &&
(which yarn || npm i -g [email protected]) &&
yarn install &&
yarn start;"
db:
image: postgres
environment:
- POSTGRES_DB=test-db
- POSTGRES_USER=test-user
- POSTGRES_PASSWORD=test-pass
- NODE_ENV=test
- TZ=Europe/Paris
e2e:
image: cypress/included:3.3.1
depends_on:
- "nginx"
- "db"
- "front"
- "api"
volumes:
- ./:/e2e
working_dir: /e2e
environment:
- CYPRESS_baseUrl=http://nginx
- NODE_ENV=test
- REACT_APP_ZEN_ENV=test
- TZ=Europe/Paris