chore: 增加docker-compose 模版的自动启动的配置

This commit is contained in:
xboard 2023-11-26 11:50:56 +08:00
parent 25317d5f64
commit b7d28cb36f

View File

@ -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