Add ws-server service to Docker Compose configuration

This commit is contained in:
Xboard
2026-03-15 10:55:35 +08:00
committed by GitHub
parent 3ec0f7aa4e
commit 421d244a62
+16
View File
@@ -30,6 +30,22 @@ services:
command: php artisan horizon command: php artisan horizon
depends_on: depends_on:
- redis - redis
ws-server:
image: ghcr.io/cedar2025/xboard:new
volumes:
- ./.docker/.data/redis/:/data/
- ./.env:/www/.env
- ./.docker/.data/:/www/.docker/.data
- ./storage/logs:/www/storage/logs
- ./plugins:/www/plugins
restart: on-failure
# network_mode: host
command: php artisan ws-server start
depends_on:
- redis
restart: on-failure
ports:
- 8076:8076
redis: redis:
image: redis:8.0-alpine image: redis:8.0-alpine
command: redis-server --unixsocket /data/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