-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.ci.yml
67 lines (63 loc) · 2.08 KB
/
docker-compose.ci.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
services:
node-chrome:
build:
context: .
dockerfile: docker/node-chromium.dockerfile
volumes:
- 'projectroot:/app'
depends_on:
- wiremock
environment:
CYPRESS_INSTALL_BINARY: 0
YARN_CACHE_FOLDER: '/app/.cache/yarn'
cypress:
image: cypress/included:13.5.0
volumes:
- 'projectroot:/app'
- './cypress/tsconfig.json:/app/tsconfig.json'
working_dir: '/app'
depends_on:
- wiremock
environment:
HTTP_PROXY: http://wiremock
HTTPS_PROXY: https://wiremock
# Do not proxy traffic to the website nor to Google services serving
# frontend assets. This pollutes the WireMock log output.
NO_PROXY: "varnish,*.gstatic.com,*.googleapis.com"
CYPRESS_BASE_URL: "http://varnish:8080"
CYPRESS_WIREMOCK_URL: "http://wiremock"
wiremock:
# We use wiremock-gui as it exposes a UI for inspecting the state of
# WireMock. This can make debugging easier. It can seamlessly be replaced
# with the official wiremock/wiremock image.
image: wiremock/wiremock:2.32.0
# The following options are used:
# --enable-browser-proxying: Allows Wiremock to intercept all traffic from
# services with HTTP(s)_PROXY pointing at it.
# --local-response-templating lets WireMock transfer values from request
# to mocked response
# --enable-stub-cors is required to make a browser running React
# components request resources.
# --verbose makes it easier to see requests and whether they are matched
# or not.
command: "--port=80 --https-port=443 --enable-browser-proxying --local-response-templating --enable-stub-cors --verbose --disable-banner"
volumes:
- 'projectroot:/app'
ports:
- 80
- 443
environment:
VIRTUAL_HOST: wiremock.${COMPOSE_PROJECT_NAME}.docker
VIRTUAL_PORT: 80
cli:
environment:
CI: true
LAGOON_ENVIRONMENT_TYPE: ci
php:
depends_on:
- wiremock
environment:
http_proxy: http://wiremock:80
https_proxy: https://wiremock:443
CI: true
LAGOON_ENVIRONMENT_TYPE: ci