This repository was archived by the owner on Dec 27, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
143 lines (133 loc) · 3.24 KB
/
compose.yaml
File metadata and controls
143 lines (133 loc) · 3.24 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
services:
# HTTP echo server for integration testing
echo-http:
image: ghcr.io/probitas-test/echo-http:latest
ports:
- "18080:80"
# gRPC echo server with reflection support for integration testing
echo-grpc:
image: ghcr.io/probitas-test/echo-grpc:latest
ports:
- "50051:50051"
# ConnectRPC echo server for integration testing
echo-connectrpc:
image: ghcr.io/probitas-test/echo-connectrpc:latest
ports:
- "18082:8080"
# GraphQL echo server for integration testing
echo-graphql:
image: ghcr.io/probitas-test/echo-graphql:latest
ports:
- "14000:8080"
# PostgreSQL server for integration testing
postgres:
image: postgres:16
ports:
- "15432:5432"
environment:
POSTGRES_DB: testdb
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpassword
healthcheck:
test: ["CMD-SHELL", "pg_isready -U testuser -d testdb"]
interval: 5s
timeout: 5s
retries: 10
# MySQL server for integration testing
mysql:
image: mysql:8.0
ports:
- "13306:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: testdb
MYSQL_USER: testuser
MYSQL_PASSWORD: testpassword
healthcheck:
test: [
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"root",
"-prootpassword",
]
interval: 5s
timeout: 5s
retries: 10
# Deno KV server for integration testing
denokv:
image: ghcr.io/denoland/denokv
ports:
- "4512:4512"
command:
- --sqlite-path
- ":memory:"
- serve
- --access-token
- testtoken1234
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "4512"]
interval: 5s
timeout: 5s
retries: 10
# Redis server for integration testing
redis:
image: redis:7
ports:
- "16379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
# MongoDB server for integration testing (replica set mode for transaction support)
mongodb:
image: mongo:7
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: testdb
command: ["--replSet", "rs0", "--bind_ip_all"]
healthcheck:
test: >
mongosh --eval "
try {
rs.status().ok
} catch(e) {
rs.initiate({_id:'rs0', members:[{_id:0, host:'localhost:27017'}]});
1
}
"
interval: 5s
timeout: 10s
retries: 10
# RabbitMQ server for integration testing
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
interval: 5s
timeout: 5s
retries: 10
# LocalStack for AWS services (SQS) integration testing
localstack:
image: localstack/localstack:latest
ports:
- "4566:4566"
environment:
SERVICES: sqs
DEBUG: 0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 5s
timeout: 5s
retries: 10