forked from uber/baseweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (94 loc) · 2.04 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '2.3'
services:
# this spins up a server that serves the html/js/css for the e2e tests
e2e-server:
build: .
command: yarn e2e:serve
expose:
- 8080
ports:
- '8080:8080'
healthcheck:
test:
[
'CMD-SHELL',
'curl -H "Accept: text/html" -f http://localhost:8080 || exit 1',
]
interval: 5s
timeout: 10s
retries: 5
# tests if the e2e-server is ready to serve traffic
e2e-server-healthy:
build: .
network_mode: 'host'
depends_on:
e2e-server:
condition: service_healthy
# running the e2e tests in ci
e2e-test:
build: .
network_mode: 'host'
depends_on:
- e2e-server-healthy
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_COMMIT
docs-site-server:
build: .
command: yarn documentation:serve
expose:
- 8081
ports:
- '8081:8081'
healthcheck:
test:
[
'CMD-SHELL',
'curl -H "Accept: text/html" -f http://localhost:8081 || exit 1',
]
interval: 5s
timeout: 10s
retries: 5
docs-site-healthy:
build: .
network_mode: 'host'
depends_on:
docs-site-server:
condition: service_healthy
docs-site:
build: .
network_mode: 'host'
depends_on:
- docs-site-healthy
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_COMMIT
baseui:
build: .
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_COMMIT
- GITHUB_AUTH_TOKEN
- SCREENER_API_KEY
- ZEIT_NOW_TOKEN