mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-03-14 00:38:13 -04:00
Update compose.yaml
This commit is contained in:
parent
0b9d16b599
commit
fe1ddf1a7d
19
compose.yaml
19
compose.yaml
@ -2,12 +2,10 @@ services:
|
|||||||
web:
|
web:
|
||||||
image: ghcr.io/cedar2025/xboard:new
|
image: ghcr.io/cedar2025/xboard:new
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- ./.docker/.data/redis/:/run/redis-socket
|
||||||
source: ${PWD}/.env
|
- ./.env:/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:
|
||||||
@ -16,15 +14,13 @@ services:
|
|||||||
command: php artisan octane:start --server="swoole" --port=7001 --host=0.0.0.0
|
command: php artisan octane:start --server="swoole" --port=7001 --host=0.0.0.0
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
ports:
|
ports:
|
||||||
- 7001:7001
|
- 7001:7001
|
||||||
horizon:
|
horizon:
|
||||||
image: ghcr.io/cedar2025/xboard:new
|
image: ghcr.io/cedar2025/xboard:new
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- ./.docker/.data/redis/:/run/redis-socket
|
||||||
source: ${PWD}/.env
|
- ./.env:/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
|
||||||
@ -32,12 +28,9 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
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
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./.docker/.data/redis:/data
|
- ./.docker/.data/redis:/data
|
||||||
- redis-socket:/run/redis-socket
|
|
||||||
sysctls:
|
sysctls:
|
||||||
net.core.somaxconn: 1024
|
net.core.somaxconn: 1024
|
||||||
volumes:
|
|
||||||
redis-socket: # 定义共享卷用于 socket 通信
|
|
Loading…
Reference in New Issue
Block a user