-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
76 lines (71 loc) · 2.03 KB
/
docker-compose.test.yaml
File metadata and controls
76 lines (71 loc) · 2.03 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
74
75
76
services:
postgres:
image: mirror.gcr.io/library/postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "${POSTGRES_HOST_PORT:-15432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- postgres_test_data:/var/lib/postgresql/data
minio:
image: mirror.gcr.io/minio/minio
ports:
- "${MINIO_HOST_PORT:-19000}:9000"
- "${MINIO_CONSOLE_HOST_PORT:-19001}:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_test_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
createbuckets:
image: mirror.gcr.io/minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
until /usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin; do echo 'Waiting for Minio...'; sleep 1; done;
/usr/bin/mc mb myminio/problemologist || true;
/usr/bin/mc mb myminio/problemologist-backup || true;
/usr/bin/mc mb myminio/benchmarks-source || true;
/usr/bin/mc mb myminio/benchmarks-assets || true;
exit 0;
"
temporal:
image: mirror.gcr.io/temporalio/auto-setup:1.22.0
ports:
- "${TEMPORAL_HOST_PORT:-17233}:7233"
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PWD=postgres
- POSTGRES_SEEDS=postgres
depends_on:
postgres:
condition: service_healthy
temporal-ui:
image: mirror.gcr.io/temporalio/ui:2.21.3
ports:
- "${TEMPORAL_UI_HOST_PORT:-18081}:8080"
environment:
- TEMPORAL_ADDRESS=temporal:7233
depends_on:
temporal:
condition: service_started
volumes:
postgres_test_data:
minio_test_data: