mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
chore: 增加docker-compose 模版的自动启动的配置
This commit is contained in:
parent
25317d5f64
commit
b7d28cb36f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user