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
|
|
|
|
command: php artisan octane:start --server="swoole" --port=8000
|
|
|
|
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 12:20:11 -05:00
|
|
|
build:
|
2023-11-23 00:29:30 -05:00
|
|
|
context: .docker/services/redis
|
2025-01-06 12:20:11 -05:00
|
|
|
restart: on-failure
|
2023-11-23 00:29:30 -05:00
|
|
|
volumes:
|
|
|
|
- ./.docker/.data/redis:/data/ # 挂载redis持久化数据
|
2025-01-06 12:20:11 -05:00
|
|
|
- redis-socket:/run/redis-socket
|
2023-11-23 00:29:30 -05:00
|
|
|
volumes:
|
2025-01-06 12:20:11 -05:00
|
|
|
redis-socket:
|