mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
d1b48623d7
1、优化部署、迁移 2、自动备份命令增加手动备份功能 3、docker部署集成redis
23 lines
555 B
YAML
23 lines
555 B
YAML
version: '3'
|
|
services:
|
|
xboard:
|
|
# build:
|
|
# context: .
|
|
image: ghcr.io/cedar2025/xboard:latest
|
|
volumes:
|
|
- ./:/www/
|
|
- redis-socket:/run/redis-socket # 挂载socket
|
|
environment:
|
|
- docker=true #用于给安装脚本判断是否为docker环境
|
|
depends_on:
|
|
- redis
|
|
ports:
|
|
- 7001:7001
|
|
redis:
|
|
build:
|
|
context: .docker/services/redis
|
|
volumes:
|
|
- ./.docker/.data/redis:/data/ # 挂载redis持久化数据
|
|
- redis-socket:/run/redis-socket # 挂载socket
|
|
volumes:
|
|
redis-socket: |