mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
chore: 增加docker-compose 模版的自动启动的配置
This commit is contained in:
parent
25317d5f64
commit
b7d28cb36f
@ -13,11 +13,13 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
network_mode: host #默认使用Host模式,需要Bridge模式自己注释掉
|
network_mode: host #默认使用Host模式,需要Bridge模式自己注释掉
|
||||||
|
restart: always
|
||||||
# ports:
|
# ports:
|
||||||
# - 7001:7001
|
# - 7001:7001
|
||||||
redis:
|
redis:
|
||||||
build:
|
build:
|
||||||
context: .docker/services/redis
|
context: .docker/services/redis
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./.docker/.data/redis:/data/ # 挂载redis持久化数据
|
- ./.docker/.data/redis:/data/ # 挂载redis持久化数据
|
||||||
- redis-socket:/run/redis-socket # 挂载socket
|
- redis-socket:/run/redis-socket # 挂载socket
|
||||||
|
Loading…
Reference in New Issue
Block a user