Xboard/compose.sample.yaml

40 lines
857 B
YAML
Raw Normal View History

services:
2025-01-06 12:20:11 -05:00
web:
build: .
volumes:
- ./:/www/
2025-01-06 12:20:11 -05:00
- redis-socket:/run/redis-socket
environment:
2025-01-06 12:20:11 -05:00
- docker=true
depends_on:
- redis
network_mode: host
2025-01-06 23:46:15 -05:00
command: php artisan octane:start --server="swoole" --port=7001
2025-01-06 12:20:11 -05:00
restart: on-failure
horizon:
build: .
volumes:
2025-01-06 12:58:53 -05:00
- ./:/www/
2025-01-06 12:20:11 -05:00
- redis-socket:/run/redis-socket
restart: on-failure
network_mode: host
command: php artisan horizon
depends_on:
- redis
redis:
2025-01-06 23:46:15 -05:00
image: redis:7-alpine
command: redis-server --appendonly yes --appendfsync everysec
restart: unless-stopped
volumes:
2025-01-06 23:46:15 -05:00
- ./.docker/.data/redis:/data
2025-01-06 12:20:11 -05:00
- redis-socket:/run/redis-socket
2025-01-06 23:46:15 -05:00
sysctls:
net.core.somaxconn: 1024
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
volumes:
2025-01-06 12:20:11 -05:00
redis-socket: