mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-03-14 00:38:13 -04:00
update compose.sample.yaml
This commit is contained in:
parent
4728784d1f
commit
bf4cff5aa4
@ -9,7 +9,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
network_mode: host
|
network_mode: host
|
||||||
command: php artisan octane:start --server="swoole" --port=8000
|
command: php artisan octane:start --server="swoole" --port=7001
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
horizon:
|
horizon:
|
||||||
build: .
|
build: .
|
||||||
@ -22,11 +22,18 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
redis:
|
redis:
|
||||||
build:
|
image: redis:7-alpine
|
||||||
context: .docker/services/redis
|
command: redis-server --appendonly yes --appendfsync everysec
|
||||||
restart: on-failure
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./.docker/.data/redis:/data/ # 挂载redis持久化数据
|
- ./.docker/.data/redis:/data
|
||||||
- redis-socket:/run/redis-socket
|
- redis-socket:/run/redis-socket
|
||||||
|
sysctls:
|
||||||
|
net.core.somaxconn: 1024
|
||||||
|
ulimits:
|
||||||
|
nproc: 65535
|
||||||
|
nofile:
|
||||||
|
soft: 20000
|
||||||
|
hard: 40000
|
||||||
volumes:
|
volumes:
|
||||||
redis-socket:
|
redis-socket:
|
||||||
|
Loading…
Reference in New Issue
Block a user