Xboard/docker-compose.sample.yaml

27 lines
709 B
YAML
Raw Normal View History

version: '3'
services:
xboard:
# build:
# context: .
2025-01-15 20:58:04 -05:00
image: ghcr.io/cedar2025/xboard:legacy
volumes:
- ./:/www/
# - ./.env:/www/.env
- redis-socket:/run/redis-socket # 挂载socket
environment:
- docker=true #用于给安装脚本判断是否为docker环境
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
volumes:
redis-socket: