Skip to content

Commit cc7ae47

Browse files
authored
Add docker compose for smoke & load testing (#282)
1 parent 6f15158 commit cc7ae47

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

docker-compose.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
version: "3.7"
2+
3+
networks:
4+
parseable:
5+
6+
services:
7+
8+
minio:
9+
image: minio/minio:RELEASE.2023-02-10T18-48-39Z
10+
entrypoint:
11+
- sh
12+
- -euc
13+
- |
14+
mkdir -p /data/parseable && \
15+
minio server /data
16+
environment:
17+
- MINIO_ROOT_USER=parseable
18+
- MINIO_ROOT_PASSWORD=supersecret
19+
- MINIO_UPDATE=off
20+
ports:
21+
- 9000
22+
volumes:
23+
- /tmp/data/minio:/data
24+
healthcheck:
25+
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
26+
interval: 15s
27+
timeout: 20s
28+
retries: 5
29+
networks:
30+
- parseable
31+
32+
parseable:
33+
image: parseable/parseable:v0.2.1
34+
command: ["parseable", "s3-store"]
35+
ports:
36+
- 8000
37+
environment:
38+
- P_S3_URL=http://minio:9000
39+
- P_S3_ACCESS_KEY=parseable
40+
- P_S3_SECRET_KEY=supersecret
41+
- P_S3_REGION=us-east-1
42+
- P_S3_BUCKET=parseable
43+
- P_STAGING_DIR=/tmp/data
44+
- P_USERNAME=admin
45+
- P_PASSWORD=admin
46+
networks:
47+
- parseable
48+
healthcheck:
49+
test: [ "CMD", "curl", "-f", "http://localhost:8000/api/v1/liveness" ]
50+
interval: 15s
51+
timeout: 20s
52+
retries: 5
53+
depends_on:
54+
- minio
55+
56+
quest-smoke:
57+
image: parseable/quest:v0.1
58+
command: ["smoke", "http://parseable:8000", "admin", "admin"]
59+
networks:
60+
- parseable
61+
depends_on:
62+
- parseable
63+
deploy:
64+
restart_policy:
65+
condition: on-failure
66+
delay: 10s
67+
max_attempts: 10
68+
69+
quest-load:
70+
image: parseable/quest:v0.1
71+
command: ["load", "http://parseable:8000", "admin", "admin"]
72+
networks:
73+
- parseable
74+
depends_on:
75+
- quest-smoke
76+
deploy:
77+
restart_policy:
78+
condition: on-failure
79+
delay: 10s
80+
max_attempts: 10

0 commit comments

Comments
 (0)