规范部分问题,解决疑似redis无法连接的问题
parent
b4fab8c2ad
commit
14bdfb995b
|
@ -13,8 +13,7 @@ services:
|
|||
- "MYSQL_ROOT_PASSWORD=lilishop"
|
||||
- "MYSQL_DATABASE=lilishop"
|
||||
- "TZ=Asia/Shanghai"
|
||||
ports:
|
||||
- 3306:3306
|
||||
network_mode: host
|
||||
|
||||
mongo:
|
||||
image: mongo
|
||||
|
@ -31,12 +30,11 @@ services:
|
|||
redis:
|
||||
image: redis
|
||||
restart: always
|
||||
container_name: 'redis'
|
||||
ports:
|
||||
- 6379:6379
|
||||
volumes:
|
||||
- ../volumes/data/redsidata:/data
|
||||
networks:
|
||||
- "redisnet"
|
||||
command: redis-server --port 6379 --requirepass lilishop --appendonly yes
|
||||
|
||||
elasticsearch:
|
||||
|
@ -68,7 +66,8 @@ services:
|
|||
kibana:
|
||||
image: docker.elastic.co/kibana/kibana:7.3.0
|
||||
container_name: kibana
|
||||
ports: ['5601:5601']
|
||||
ports:
|
||||
- 5601:5601
|
||||
# volumes:
|
||||
# - "./config/kibana.yml:/usr/share/kibana/config/kibana.yml"
|
||||
networks:
|
||||
|
@ -84,13 +83,13 @@ services:
|
|||
networks:
|
||||
- stack
|
||||
depends_on: ['elasticsearch']
|
||||
ports: ['4560:4560']
|
||||
ports:
|
||||
- 4560:4560
|
||||
|
||||
# rocket mq name server
|
||||
rmqnamesrv:
|
||||
image: foxiswho/rocketmq:server
|
||||
container_name: rocket-server
|
||||
network_mode: host
|
||||
environment:
|
||||
JAVA_OPT_EXT: "-server -Xms64m -Xmx64m -Xmn64m"
|
||||
ports:
|
||||
|
@ -103,7 +102,6 @@ services:
|
|||
rmqbroker:
|
||||
image: foxiswho/rocketmq:broker
|
||||
container_name: rocket-broker
|
||||
network_mode: host
|
||||
ports:
|
||||
- 10909:10909
|
||||
- 10911:10911
|
||||
|
@ -122,7 +120,6 @@ services:
|
|||
rmqconsole:
|
||||
image: styletang/rocketmq-console-ng
|
||||
container_name: rocket-console
|
||||
network_mode: host
|
||||
ports:
|
||||
- 8180:8180
|
||||
environment:
|
||||
|
@ -136,8 +133,6 @@ services:
|
|||
image: xuxueli/xxl-job-admin:2.3.0
|
||||
container_name: xxl-job
|
||||
network_mode: host
|
||||
ports:
|
||||
- 9001:9001
|
||||
environment:
|
||||
- PARAMS=--spring.datasource.url=jdbc:mysql://127.0.0.1:3306/lilishop?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root --spring.datasource.password=lilishop --server.port=9001
|
||||
depends_on:
|
||||
|
@ -146,5 +141,4 @@ services:
|
|||
- ../volumes/data/xxl-job:/data/applogs
|
||||
networks:
|
||||
stack:
|
||||
redisnet:
|
||||
driver: bridge
|
||||
|
|
Loading…
Reference in New Issue