2023-11-23 00:29:30 -05:00
|
|
|
services:
|
2025-01-06 12:20:11 -05:00
|
|
|
web:
|
|
|
|
build: .
|
2023-11-23 00:29:30 -05:00
|
|
|
volumes:
|
|
|
|
- ./:/www/
|
2025-01-06 12:20:11 -05:00
|
|
|
- redis-socket:/run/redis-socket
|
2023-11-23 00:29:30 -05:00
|
|
|
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
|
2023-11-23 00:29:30 -05:00
|
|
|
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
|
2023-11-23 00:29:30 -05:00
|
|
|
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
|
2023-11-23 00:29:30 -05:00
|
|
|
volumes:
|
2025-01-06 12:20:11 -05:00
|
|
|
redis-socket:
|