generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 18
/
concurrency-test-docker-compose.yml
49 lines (49 loc) · 1.17 KB
/
concurrency-test-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
services:
diddht-a:
build:
context: impl
dockerfile: build/Dockerfile
environment:
STORAGE_URI: postgres://postgres:aa@postgres/postgres
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8305/health"]
interval: 5s
timeout: 1s
retries: 10
diddht-b:
build:
context: impl
dockerfile: build/Dockerfile
environment:
STORAGE_URI: postgres://postgres:aa@postgres/postgres
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8305/health"]
interval: 5s
timeout: 1s
retries: 10
postgres:
image: library/postgres
command: ["-E"]
environment:
POSTGRES_PASSWORD: aa
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
concurrencytest:
build:
context: impl
dockerfile_inline: |
FROM library/golang:latest
COPY . /go/diddht
WORKDIR /go/diddht
RUN go build -o /concurrencytest ./concurrencytest
command: "/concurrencytest"
depends_on:
- diddht-a
- diddht-b