Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (58 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
# Local infrastructure for the adapter integration tests (`pnpm test:integration`).
# Ports match the defaults the tests use; override them with the env vars
# documented in test.env if you map them elsewhere.
services:
rabbitmq:
image: rabbitmq:3-management
ports:
- '5672:5672'
- '15672:15672'
localstack:
image: localstack/localstack:3
environment:
SERVICES: sqs,sns,iam,sts
ports:
- '4566:4566'
postgres:
image: postgres:16
environment:
POSTGRES_PASSWORD: password
ports:
- '6432:5432'
redis:
image: redis:8
ports:
- '6380:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 2s
timeout: 5s
retries: 30
# Optional: run the Redis transport's tests against Valkey with
# REDIS_URL=redis://localhost:6381
valkey:
image: valkey/valkey:8
ports:
- '6381:6379'
healthcheck:
test: ['CMD', 'valkey-cli', 'ping']
interval: 2s
timeout: 5s
retries: 30
mongo:
image: mongo:7
# A single-node replica set, since the outbox's transactions need one. The
# healthcheck initiates it, and reports healthy once it's primary.
command: ['--replSet', 'rs0', '--bind_ip_all']
ports:
- '27017:27017'
healthcheck:
test:
- CMD
- mongosh
- --quiet
- --eval
- "try { rs.status() } catch (e) { rs.initiate({ _id: 'rs0', members: [{ _id: 0, host: 'localhost:27017' }] }) }; if (!db.hello().isWritablePrimary) quit(1)"
interval: 2s
timeout: 10s
retries: 30