-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
172 lines (164 loc) · 5.15 KB
/
docker-compose.yml
File metadata and controls
172 lines (164 loc) · 5.15 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
volumes:
db-data:
testsupport-data:
zookeeper-data:
kafka-data:
nginx-configuration-data:
minio-data:
services:
eets-testcontainer-proxy:
container_name: eets-testcontainer-proxy
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./cert:/var/eets/test/proxy-conf/cert
depends_on:
- "eets-testcontainer-provider-interface-service"
eets-testcontainer-zookeeper:
container_name: eets-testcontainer-zookeeper
image: confluentinc/cp-zookeeper:7.3.0
ports:
- "2181:2181"
volumes:
- "zookeeper-data:/var/lib/zookeeper/data"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
KAFKA_OPTS: "-Dzookeeper.4lw.commands.whitelist=ruok"
healthcheck:
test: [ "CMD-SHELL", "echo ruok | nc -w 2 localhost 2181 | grep imok || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
kafka:
image: confluentinc/cp-kafka:7.3.0
container_name: kafka
hostname: kafka
ports:
- "9092:9092"
volumes:
- "kafka-data:/var/lib/kafka/data"
environment:
KAFKA_ZOOKEEPER_CONNECT: eets-testcontainer-zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
depends_on:
eets-testcontainer-zookeeper:
condition: service_healthy
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9092" ]
interval: 10s
timeout: 5s
retries: 5
eets-testcontainer-schema-registry:
container_name: eets-testcontainer-schema-registry
image: confluentinc/cp-schema-registry:7.3.0
ports:
- '8081:8081'
depends_on:
kafka:
condition: service_healthy
environment:
SCHEMA_REGISTRY_HOST_NAME: eets-testcontainer-schema-registry
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "8081" ]
interval: 10s
timeout: 5s
retries: 5
eets-testcontainer-postgres:
image: postgres:15.1
container_name: eets-testcontainer-postgres
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=eets"
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=db-testsupport"
healthcheck:
test: ["CMD", "pg_isready", "-U", "eets", "-d", "db-testsupport"]
interval: 10s
timeout: 5s
retries: 5
eets-testcontainer-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
volumes:
- minio-data:/data
container_name: eets-testcontainer-minio
command:
- server
- --address=0.0.0.0:9000
- --console-address=0.0.0.0:9001
- /data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: "admin"
MINIO_ROOT_PASSWORD: "secretsecret"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
mc:
image: minio/mc
container_name: mc-bucket-creator-eets
depends_on:
eets-testcontainer-minio:
condition: service_healthy
environment:
MINIO_ROOT_USER: "admin"
MINIO_ROOT_PASSWORD: "secretsecret"
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://eets-testcontainer-minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD;
/usr/bin/mc mb --with-lock myminio/bazg-camiuns-eets-pis-tc || true;
/usr/bin/mc version enable myminio/bazg-camiuns-eets-pis-tc || true;
exit 0;
"
eets-testcontainer-testsupportservice:
image: ghcr.io/ezv-eets/eets-test-container/eets-test-support-service
container_name: eets-testcontainer-testsupportservice
ports:
- "8096:8096"
volumes:
- ./cert/provider-signing-cert:/var/eets/test/service-conf/cert/provider-signing-cert
- ./provider.properties:/var/eets/test/service-conf/provider.properties
depends_on:
eets-testcontainer-postgres:
condition: service_healthy
kafka:
condition: service_healthy
eets-testcontainer-schema-registry:
condition: service_healthy
mc:
condition: service_completed_successfully
environment:
- SPRING_PROFILES_ACTIVE=testsupport
- KAFKA_SECURITY_PROTOCOL=PLAINTEXT
- KAFKA_URL=kafka:9092
- SCHEMA_REGISTRY_URL=http://eets-testcontainer-schema-registry:8081
eets-testcontainer-provider-interface-service:
image: ghcr.io/ezv-eets/eets-test-container/eets-provider-interface-service
container_name: eets-provider-interface-service
ports:
- "8089:8089"
depends_on:
mc:
condition: service_completed_successfully
eets-testcontainer-testsupportservice:
condition: service_started
environment:
- KAFKA_SECURITY_PROTOCOL=PLAINTEXT
- SPRING_PROFILES_ACTIVE=testsupport,testcontainer
- KAFKA_URL=kafka:9092
- SCHEMA_REGISTRY_URL=http://eets-testcontainer-schema-registry:8081