代码拉取完成,页面将自动刷新
version: '3'
services:
# RabbitMQ
rabbitmq:
image: rabbitmq:3.12.7-management
ports:
- "5672:5672"
- "15672:15672"
container_name: rabbitmq
volumes:
- ./rabbitmq/plugins/rabbitmq_delayed_message_exchange-3.12.0.ez:/plugins/rabbitmq_delayed_message_exchange-3.12.0.ez
- ./rabbitmq/plugins/enabled_plugins:/etc/rabbitmq/enabled_plugins
- ./rabbitmq/data:/var/lib/rabbitmq
- ./rabbitmq/log:/var/lib/rabbitmq
environment:
#rabbitmq的初始用户名
RABBITMQ_DEFAULT_USER: guest
#rabbitmq的初始密码
RABBITMQ_DEFAULT_PASS: guest
network_mode: "host"
# Elasticsearch服务
elasticsearch:
image: elasticsearch:7.14.0
ports:
- "9200:9200"
container_name: elasticsearch
volumes:
- ./es/data:/usr/share/elasticsearch/data
- ./es/plugins:/usr/share/elasticsearch/plugins
- ./es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- ELASTIC_PASSWORD="123456"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
network_mode: "host"
redis:
container_name: redis
image: redis:6.2.7
ports:
- "6379:6379"
volumes:
- ./redis/redis.conf:/etc/redis/redis.conf
- ./redis/data:/data
command: redis-server /etc/redis/redis.conf
network_mode: "host"
# MySQL服务
mysql:
container_name: mysql
image: mysql:8.0.33
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: '123456'
MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
MYSQL_DATABASE: 'wayn_shop'
volumes:
- ./mysql/data:/var/lib/mysql
- ./db-init:/docker-entrypoint-initdb.d
- ./mysql/conf/my.cnf:/etc/mysql/conf.d/my.cnf
command: mysqld --lower_case_table_names=1 --slow_query_log=1 --max_connections=1000 --default-authentication-plugin=mysql_native_password
network_mode: "host"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。