Xboard/compose.sample.yaml

31 lines
814 B
YAML
Raw Normal View History

services:
2025-01-07 01:20:11 +08:00
web:
2025-01-16 01:10:00 +08:00
image: ghcr.io/cedar2025/xboard:latest
volumes:
2025-01-10 11:04:12 +08:00
- ./.docker/.data/redis/:/data/
- ./:/www/
environment:
2025-01-07 01:20:11 +08:00
- docker=true
depends_on:
- redis
network_mode: host
2025-01-10 11:04:12 +08:00
command: php artisan octane:start --port=7001 --host=0.0.0.0
2025-01-07 01:20:11 +08:00
restart: on-failure
horizon:
2025-01-16 01:10:00 +08:00
image: ghcr.io/cedar2025/xboard:latest
2025-01-07 01:20:11 +08:00
volumes:
2025-01-10 11:04:12 +08:00
- ./.docker/.data/redis/:/data/
2025-01-07 01:58:53 +08:00
- ./:/www/
2025-01-07 01:20:11 +08:00
restart: on-failure
network_mode: host
command: php artisan horizon
depends_on:
- redis
redis:
2025-01-07 13:29:09 +08:00
image: redis:7-alpine
2025-01-09 12:21:21 +08:00
command: redis-server --unixsocket /data/redis.sock --unixsocketperm 777 --save 900 1 --save 300 10 --save 60 10000
2025-01-07 12:46:15 +08:00
restart: unless-stopped
volumes:
2025-01-07 12:46:15 +08:00
- ./.docker/.data/redis:/data
sysctls:
2025-01-09 12:21:21 +08:00
net.core.somaxconn: 1024