User and group by default: id - 777, name - "dev"
networks:
dev:
name: "dev"
services:
laravel_scheduler:
image: mallgroup/laravel-worker:tagname
environment:
PHP_OPCACHE_ENABLE: 1
CONTAINER_ROLE: "scheduler"
ARTISAN_PATH: "/path/to/artisan/in/project"
deploy:
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 30
window: 180s
networks:
- dev
laravel_queue:
image: mallgroup/laravel-worker:tagname
volumes:
- "app:/app"
environment:
PHP_OPCACHE_ENABLE: 1
CONTAINER_ROLE: "queue"
ARTISAN_PATH: "/path/to/artisan/in/project"
QUEUE_TRIES: 3
QUEUE_TRIES_DELAY: 2
QUEUE_TIMEOUT: 90
QUEUE_VERBOSE: --verbose # -v|vv|vvv - logging settings
QUEUE_NAMES: high
QUEUE_SLEEP: 2
QUEUE_CONNECT_NAME: redis
QUEUE_STOP_WHEN_EMPTY: 0 # 1 or 0
deploy:
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 30
window: 180s
networks:
- dev
Content type
Image
Digest
sha256:995cc4602…
Size
258.3 MB
Last updated
about 3 years ago
docker pull mallgroup/laravel-worker