update compose.sample.yaml

This commit is contained in:
xboard 2025-01-09 12:21:21 +08:00
parent 652c6eb125
commit cd7c1ca34b

View File

@ -2,20 +2,20 @@ services:
web:
image: ghcr.io/cedar2025/xboard:new
volumes:
- ./.docker/.data/redis/:/run/redis-socket
- ./:/www/
- redis-socket:/run/redis-socket
environment:
- docker=true
depends_on:
- redis
network_mode: host
command: php artisan octane:start --server="swoole" --port=7001
command: php artisan octane:start --server="swoole" --port=7001 --host=0.0.0.0
restart: on-failure
horizon:
image: ghcr.io/cedar2025/xboard:new
volumes:
- ./.docker/.data/redis/:/run/redis-socket
- ./:/www/
- redis-socket:/run/redis-socket
restart: on-failure
network_mode: host
command: php artisan horizon
@ -23,13 +23,9 @@ services:
- redis
redis:
image: redis:7-alpine
command: redis-server --unixsocket /run/redis-socket/redis.sock --unixsocketperm 777 --save 900 1 --save 300 10 --save 60 10000
command: redis-server --unixsocket /data/redis.sock --unixsocketperm 777 --save 900 1 --save 300 10 --save 60 10000
restart: unless-stopped
volumes:
- ./.docker/.data/redis:/data
- redis-socket:/run/redis-socket
sysctls:
net.core.somaxconn: 1024
volumes:
redis-socket: # 定义共享卷用于 socket 通信