mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
chore: 增加docker-compose.sample.yaml 模版
This commit is contained in:
parent
095e5131e8
commit
653884e7b3
25
docker-compose.sample.yaml
Normal file
25
docker-compose.sample.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
version: '3'
|
||||
services:
|
||||
xboard:
|
||||
# build:
|
||||
# context: .
|
||||
image: ghcr.io/cedar2025/xboard:latest
|
||||
volumes:
|
||||
- ./:/www/
|
||||
# - ./.env:/www/.env
|
||||
- redis-socket:/run/redis-socket # 挂载socket
|
||||
environment:
|
||||
- docker=true #用于给安装脚本判断是否为docker环境
|
||||
depends_on:
|
||||
- redis
|
||||
network_mode: host #默认使用Host模式,需要Bridge模式自己注释掉
|
||||
# ports:
|
||||
# - 7001:7001
|
||||
redis:
|
||||
build:
|
||||
context: .docker/services/redis
|
||||
volumes:
|
||||
- ./.docker/.data/redis:/data/ # 挂载redis持久化数据
|
||||
- redis-socket:/run/redis-socket # 挂载socket
|
||||
volumes:
|
||||
redis-socket:
|
Loading…
Reference in New Issue
Block a user