-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (84 loc) · 2.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (84 loc) · 2.52 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
# Real backing services for Firefly Framework integration tests.
#
# make infra-up # start everything
# make test-integration # run the env-gated integration tests against it
# make infra-down # stop and remove
#
# Each integration test reads a connection URL/addr from the environment and
# skips when it is unset, so `cargo test` on a bare machine stays green while
# `make test-integration` (with this stack up) exercises the real services.
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: firefly
POSTGRES_PASSWORD: firefly
POSTGRES_DB: firefly
# Host port 5442 (not 5432) to avoid collisions with other local Postgres.
ports: ["5442:5432"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U firefly"]
interval: 3s
timeout: 3s
retries: 20
redis:
image: redis:7-alpine
ports: ["6379:6379"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 3s
retries: 20
rabbitmq:
image: rabbitmq:3-management-alpine
ports: ["5672:5672", "15672:15672"]
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 5s
timeout: 5s
retries: 20
redpanda:
image: redpandadata/redpanda:latest
command:
- redpanda
- start
- --smp=1
- --overprovisioned
- --node-id=0
- --kafka-addr=PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr=PLAINTEXT://localhost:9092
ports: ["9092:9092"]
healthcheck:
test: ["CMD-SHELL", "rpk cluster health | grep -q 'Healthy:.*true'"]
interval: 5s
timeout: 5s
retries: 30
keycloak:
image: quay.io/keycloak/keycloak:25.0
command: ["start-dev", "--http-port=8095"]
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
ports: ["8095:8095"]
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/localhost/8095 && echo done >&3"]
interval: 5s
timeout: 5s
retries: 40
localstack:
image: localstack/localstack:3
environment:
SERVICES: s3
ports: ["4566:4566"]
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4566/_localstack/health || exit 1"]
interval: 5s
timeout: 5s
retries: 20
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
command: ["azurite-blob", "--blobHost", "0.0.0.0", "--blobPort", "10000"]
ports: ["10000:10000"]
mailhog:
image: mailhog/mailhog:latest
ports: ["1026:1025", "8026:8025"]