|
|
|
@ -2,6 +2,11 @@ version: "3.8"
|
|
|
|
|
services:
|
|
|
|
|
mysql:
|
|
|
|
|
image: mysql:8.0.23
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 10
|
|
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
- MYSQL_ROOT_PASSWORD=aA123456!
|
|
|
|
@ -27,6 +32,11 @@ services:
|
|
|
|
|
ipv4_address: 172.172.0.20
|
|
|
|
|
kafka:
|
|
|
|
|
image: wurstmeister/kafka:2.13-2.7.0
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "9092"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 10
|
|
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
KAFKA_HEAP_OPTS: "-Xmx512m -Xms512m"
|
|
|
|
@ -81,6 +91,11 @@ services:
|
|
|
|
|
ipv4_address: 172.172.0.23
|
|
|
|
|
elasticsearch:
|
|
|
|
|
image: elasticsearch:7.12.0
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "9200"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 10
|
|
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
- ES_JAVA_OPTS=-Xms512m -Xmx512m
|
|
|
|
|