-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
52 lines (49 loc) · 1.08 KB
/
docker-compose.test.yml
File metadata and controls
52 lines (49 loc) · 1.08 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
services:
db:
image: postgres:17
restart: unless-stopped
env_file: .env.docker
ports:
- 5432:5432
volumes:
- postgres_test_data:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
start_period: 5s
interval: 30s
timeout: 5s
retries: 3
broker:
image: bitnamilegacy/kafka:3.9
restart: unless-stopped
env_file: .env.docker
ports:
- 9093:9093
volumes:
- kafka_test_data:/bitnami/kafka
healthcheck:
test: [CMD-SHELL, kafka-topics.sh --bootstrap-server 127.0.0.1:9095 --list]
interval: 10s
timeout: 5s
retries: 5
profiles:
- consumer
- all
keycloak:
image: quay.io/keycloak/keycloak:latest
command: start-dev
restart: unless-stopped
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
ports:
- 8080:8080
volumes:
- keycloak_data:/opt/keycloak/data
profiles:
- keycloak
- all
volumes:
postgres_test_data:
kafka_test_data:
keycloak_data: