Forráskód Böngészése

Docker Compose 镜像版本升级

macro 2 éve
szülő
commit
c3fbe1b97e
1 módosított fájl, 8 hozzáadás és 8 törlés
  1. 8 8
      document/docker/docker-compose-env.yml

+ 8 - 8
document/docker/docker-compose-env.yml

@@ -14,7 +14,7 @@ services:
       - /mydata/mysql/data/conf:/etc/mysql/conf.d #配置文件挂载
       - /mydata/mysql/log:/var/log/mysql #日志文件挂载
   redis:
-    image: redis:5
+    image: redis:7
     container_name: redis
     command: redis-server --appendonly yes
     volumes:
@@ -22,7 +22,7 @@ services:
     ports:
       - 6379:6379
   nginx:
-    image: nginx:1.10
+    image: nginx:1.22
     container_name: nginx
     volumes:
       - /mydata/nginx/nginx.conf:/etc/nginx/nginx.conf #配置文件挂载
@@ -31,7 +31,7 @@ services:
     ports:
       - 80:80
   rabbitmq:
-    image: rabbitmq:3.7.15-management
+    image: rabbitmq:3.9-management
     container_name: rabbitmq
     volumes:
       - /mydata/rabbitmq/data:/var/lib/rabbitmq #数据文件挂载
@@ -40,12 +40,12 @@ services:
       - 5672:5672
       - 15672:15672
   elasticsearch:
-    image: elasticsearch:7.6.2
+    image: elasticsearch:7.17.3
     container_name: elasticsearch
     environment:
       - "cluster.name=elasticsearch" #设置集群名称为elasticsearch
       - "discovery.type=single-node" #以单一节点模式启动
-      - "ES_JAVA_OPTS=-Xms512m -Xmx512m" #设置使用jvm内存大小
+      - "ES_JAVA_OPTS=-Xms512m -Xmx1024m" #设置使用jvm内存大小
     volumes:
       - /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins #插件文件挂载
       - /mydata/elasticsearch/data:/usr/share/elasticsearch/data #数据文件挂载
@@ -53,7 +53,7 @@ services:
       - 9200:9200
       - 9300:9300
   logstash:
-    image: logstash:7.6.2
+    image: logstash:7.17.3
     container_name: logstash
     environment:
       - TZ=Asia/Shanghai
@@ -69,7 +69,7 @@ services:
       - 4562:4562
       - 4563:4563
   kibana:
-    image: kibana:7.6.2
+    image: kibana:7.17.3
     container_name: kibana
     links:
       - elasticsearch:es #可以用es这个域名访问elasticsearch服务
@@ -80,7 +80,7 @@ services:
     ports:
       - 5601:5601
   mongo:
-    image: mongo:4.2.5
+    image: mongo:4
     container_name: mongo
     volumes:
       - /mydata/mongo/db:/data/db #数据文件挂载