From b7d28cb36ff07310613f0a273e737ab569783277 Mon Sep 17 00:00:00 2001 From: xboard Date: Sun, 26 Nov 2023 11:50:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0docker-compose=20?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E7=9A=84=E8=87=AA=E5=8A=A8=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.sample.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.sample.yaml b/docker-compose.sample.yaml index 3fe1656..87960b5 100644 --- a/docker-compose.sample.yaml +++ b/docker-compose.sample.yaml @@ -13,11 +13,13 @@ services: depends_on: - redis network_mode: host #默认使用Host模式,需要Bridge模式自己注释掉 + restart: always # ports: # - 7001:7001 redis: build: context: .docker/services/redis + restart: always volumes: - ./.docker/.data/redis:/data/ # 挂载redis持久化数据 - redis-socket:/run/redis-socket # 挂载socket