Update compose.yaml

This commit is contained in:
Xboard
2025-01-10 13:30:02 +08:00
committed by GitHub
parent fe1ddf1a7d
commit 104224b756
+5 -5
View File
@@ -2,25 +2,27 @@ services:
web: web:
image: ghcr.io/cedar2025/xboard:new image: ghcr.io/cedar2025/xboard:new
volumes: volumes:
- ./.docker/.data/redis/:/run/redis-socket - ./.docker/.data/redis/:/data/
- ./.env:/www/.env - ./.env:/www/.env
- ./.docker/.data/:/www/.docker/.data - ./.docker/.data/:/www/.docker/.data
- ./public/theme/:/www/public/theme/ - ./public/theme/:/www/public/theme/
- ./public/storage:/www/public/storage
environment: environment:
- docker=true - docker=true
depends_on: depends_on:
- redis - redis
# network_mode: host # network_mode: host
command: php artisan octane:start --server="swoole" --port=7001 --host=0.0.0.0 command: php artisan octane:start --server="swoole" --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:
- ./.docker/.data/redis/:/run/redis-socket - ./.docker/.data/redis/:/data/
- ./.env:/www/.env - ./.env:/www/.env
- ./.docker/.data/:/www/.docker/.data - ./.docker/.data/:/www/.docker/.data
- ./public/storage:/www/public/storage
restart: on-failure restart: on-failure
# network_mode: host # network_mode: host
command: php artisan horizon command: php artisan horizon
@@ -32,5 +34,3 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./.docker/.data/redis:/data - ./.docker/.data/redis:/data
sysctls:
net.core.somaxconn: 1024