-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.33 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
version: "3.9"
services:
# start server
server:
image: aemdesign/java-buildpack:jdk11
command: /bin/bash -l /build/source/scripts/automation-test.sh
working_dir: /build/source
volumes:
- ./:/build/source
- .cache:/build/.cache
- .config:/build/.config
environment:
- NODE_ENV=develop
- PORT=8080
- HOST=server
- DEBUG=start-server-and-test
healthcheck:
test: ["CMD", "curl", "-f", "http://server:3000"]
interval: 3s
timeout: 5s
retries: 5
start_period: 2s
networks:
default:
aliases:
- server
# # run tests
# cypress:
# image: cypress/included:9.5.0
# working_dir: /source
# volumes:
# - ./:/source
# command: run --config baseUrl=http://server:8080
# depends_on:
# server:
# condition: service_healthy
# networks:
# - default
#
# reports:
# image: aemdesign/java-buildpack:jdk11
# command: /bin/bash -l /build/source/scripts/generate-reports.sh
# working_dir: /build/source
# volumes:
# - ./:/build/source
# environment:
# - NODE_ENV=develop
# - PORT=8080
# - HOST=server
# depends_on:
# cypress:
# condition: service_completed_successfully
# networks:
# default:
# aliases:
# - reports
networks:
default: