mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-02 07:28:13 -05:00
update compose.yaml
This commit is contained in:
parent
d393f7d455
commit
0b9d16b599
16
compose.yaml
16
compose.yaml
@ -7,6 +7,7 @@ services:
|
|||||||
target: /www/.env
|
target: /www/.env
|
||||||
- ./.docker/.data/:/www/.docker/.data
|
- ./.docker/.data/:/www/.docker/.data
|
||||||
- ./public/theme/:/www/public/theme/
|
- ./public/theme/:/www/public/theme/
|
||||||
|
- redis-socket:/run/redis-socket
|
||||||
environment:
|
environment:
|
||||||
- docker=true
|
- docker=true
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -23,21 +24,20 @@ services:
|
|||||||
source: ${PWD}/.env
|
source: ${PWD}/.env
|
||||||
target: /www/.env
|
target: /www/.env
|
||||||
- ./.docker/.data/:/www/.docker/.data
|
- ./.docker/.data/:/www/.docker/.data
|
||||||
|
- redis-socket:/run/redis-socket
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
# network_mode: host
|
# network_mode: host
|
||||||
command: php artisan horizon
|
command: php artisan horizon
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
command: redis-server --save 900 1 --save 300 10 --save 60 10000
|
command: redis-server --unixsocket /run/redis-socket/redis.sock --unixsocketperm 777 --save 900 1 --save 300 10 --save 60 10000
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./.docker/.data/:/www/.docker/.data
|
- ./.docker/.data/redis:/data
|
||||||
|
- redis-socket:/run/redis-socket
|
||||||
sysctls:
|
sysctls:
|
||||||
net.core.somaxconn: 1024
|
net.core.somaxconn: 1024
|
||||||
ulimits:
|
volumes:
|
||||||
nproc: 65535
|
redis-socket: # 定义共享卷用于 socket 通信
|
||||||
nofile:
|
|
||||||
soft: 20000
|
|
||||||
hard: 40000
|
|
Loading…
Reference in New Issue
Block a user