This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.test.yml
77 lines (73 loc) · 1.6 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
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"
- "node"
node:
build:
context: .
dockerfile: dockerfile_back
volumes:
- "./back:/home/back"
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:
build:
context: .
dockerfile: dockerfile_front
volumes:
- "./front:/home/front"
environment:
- NODE_ENV=test
- REACT_APP_ZEN_ENV=test
- TZ=Europe/Paris
- BUNDLE_TOKEN_ANALYZER=${BUNDLE_TOKEN_ANALYZER}
- CI=${CI}
expose:
- "3000"
db:
image: postgres:10.4
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"
- "node"
volumes:
- ./:/e2e
working_dir: /e2e
environment:
- CYPRESS_baseUrl=http://nginx
- NODE_ENV=test
- REACT_APP_ZEN_ENV=test
- TZ=Europe/Paris