-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.57 KB
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
version: '3.9'
volumes:
arangodb:
services:
arangodb:
image: arangodb/arangodb:${ARANGODB_VERSION:-3.9.3}
environment:
- ARANGO_NO_AUTH=1
ports:
- '8529:8529'
volumes:
- arangodb:/var/lib/arangodb3
healthcheck:
test: ["CMD", "wget", "-nv", "-t1", "--spider", "http://localhost:8529/_api/version"]
interval: 5s
timeout: 5s
retries: 2
start_period: 5s
api:
build:
context: src/
depends_on:
arangodb:
condition: service_healthy
ports:
- '8080:8080'
environment:
- DB_ENDPOINT=http://arangodb:8529
- DB_USER=root
- DB_PASSWORD=
healthcheck:
test: ["CMD", "wget", "-nv", "-t1", "--spider", "http://localhost:8080/healthcheck"]
interval: 5s
timeout: 5s
retries: 3
start_period: 1s
postman:
image: postman/newman:alpine
profiles:
- testing
command:
run DevChallangeTrustNetwork.postman_collection.json
-k -r cli
--env-var API_HOST=http://api:8080
--iteration-count 2
volumes:
- ./tests:/etc/newman
depends_on:
arangodb:
condition: service_healthy
api:
condition: service_healthy
siege:
image: yokogawa/siege
profiles:
- testing
command: --concurrent=1000 --time=60S --internet --file /urls.txt
depends_on:
arangodb:
condition: service_healthy
api:
condition: service_healthy
volumes:
- ./siege/urls.txt:/urls.txt
- ./siege/log:/var/log
environment:
- API_HOST=http://api:8080