-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 1 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
# Self-to-self interop test: libp2p-hs listener + libp2p-hs dialer.
# Both peers speak the unified-testing "modern" transport contract.
# Usage: docker compose up --build --exit-code-from dialer
x-hs-env: &hs-env
REDIS_ADDR: "redis:6379"
TEST_KEY: "cafe0129"
TRANSPORT: tcp
SECURE_CHANNEL: noise
MUXER: yamux
LISTENER_IP: "0.0.0.0"
services:
redis:
image: redis:7-alpine
# Disable persistence so a stale listener address never survives across runs.
command: ["redis-server", "--save", "", "--appendonly", "no"]
ports:
- "6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30
listener:
build: .
depends_on:
redis:
condition: service_healthy
environment:
<<: *hs-env
IS_DIALER: "false"
dialer:
build: .
depends_on:
redis:
condition: service_healthy
listener:
condition: service_started
environment:
<<: *hs-env
IS_DIALER: "true"