2023-08-30 10:19:37 +08:00
|
|
|
version: '3.8'
|
|
|
|
name: demo01-dev
|
2023-08-14 09:19:43 +08:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mysql:latest
|
|
|
|
container_name: mysql01
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "3309:3306"
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: 'Y9i-83204585'
|
|
|
|
MYSQL_DATABASE: 'demo01'
|
|
|
|
volumes:
|
|
|
|
- d:/docker-data/mysql:/var/lib/mysql
|
|
|
|
|
2023-08-30 10:19:37 +08:00
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
container_name: postgre-01
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: "11111111"
|
|
|
|
POSTGRES_DB: y9_public
|
|
|
|
PGDATA: "/var/lib/postgresql/data/pgdata"
|
|
|
|
volumes:
|
|
|
|
- d:/docker-data/postgres:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d y9_public"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
redis:
|
|
|
|
image: redis:latest
|
|
|
|
container_name: redis01
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "7379:6379"
|
|
|
|
command: redis-server --requirepass "y9i-83204585"
|
|
|
|
volumes:
|
|
|
|
- d:/docker-data/redis:/data
|
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
image: elasticsearch:8.8.1
|
|
|
|
container_name: elastic01
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- '9200:9200'
|
|
|
|
- '9300:9300'
|
|
|
|
volumes:
|
|
|
|
- d:/docker-data/es:/usr/share/elasticsearch/data
|
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.security.enabled=false
|
|
|
|
labels:
|
|
|
|
org.springframework.boot.service-connection: elasticsearch
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
image: bitnami/kafka:3.5
|
|
|
|
container_name: kafka01
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "9092:9092"
|
|
|
|
- "9094:9094"
|
|
|
|
environment:
|
|
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
|
|
- KAFKA_ENABLE_KRAFT=yes
|
|
|
|
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
|
|
|
|
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
|
|
|
|
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
|
|
|
|
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT
|
|
|
|
volumes:
|
|
|
|
- d:/docker-data/kafka:/bitnami/kafka
|
|
|
|
|
|
|
|
|