You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
1 year ago
|
version: '3'
|
||
|
services:
|
||
|
# RabbitMQ
|
||
|
rabbitmq:
|
||
1 year ago
|
image: rabbitmq:3.12.7-management
|
||
1 year ago
|
ports:
|
||
|
- "5672:5672"
|
||
|
- "15672:15672"
|
||
|
container_name: rabbitmq
|
||
1 year ago
|
volumes:
|
||
1 year ago
|
- ./rabbitmq/plugins/rabbitmq_delayed_message_exchange-3.12.0.ez:/plugins/rabbitmq_delayed_message_exchange-3.12.0.ez
|
||
1 year ago
|
- ./rabbitmq/plugins/enabled_plugins:/etc/rabbitmq/enabled_plugins
|
||
|
- ./rabbitmq/data:/var/lib/rabbitmq
|
||
|
- ./rabbitmq/log:/var/lib/rabbitmq
|
||
1 year ago
|
environment:
|
||
|
#rabbitmq的初始用户名
|
||
|
RABBITMQ_DEFAULT_USER: guest
|
||
|
#rabbitmq的初始密码
|
||
|
RABBITMQ_DEFAULT_PASS: guest
|
||
|
network_mode: "host"
|
||
|
# Elasticsearch服务
|
||
|
elasticsearch:
|
||
1 year ago
|
image: elasticsearch:7.14.0
|
||
|
ports:
|
||
|
- "9200:9200"
|
||
1 year ago
|
container_name: elasticsearch
|
||
|
volumes:
|
||
|
- ./es/data:/usr/share/elasticsearch/data
|
||
|
- ./es/plugins:/usr/share/elasticsearch/plugins
|
||
1 year ago
|
- ./es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||
1 year ago
|
environment:
|
||
|
- discovery.type=single-node
|
||
|
- bootstrap.memory_lock=true
|
||
1 year ago
|
- ELASTIC_PASSWORD="123456"
|
||
1 year ago
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||
|
network_mode: "host"
|
||
1 year ago
|
redis:
|
||
|
container_name: redis
|
||
|
image: redis:6.2.7
|
||
|
ports:
|
||
|
- "16789:16789"
|
||
|
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
|
||
|
command: mysqld --lower_case_table_names=1 --default-authentication-plugin=mysql_native_password
|
||
|
network_mode: "host"
|