-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
41 lines (35 loc) · 930 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
x-function: &common_setup
build:
context: ./php/8.2-nginx/
dockerfile: ./Dockerfile
restart: always
environment:
CONTAINER_MODE: manual
networks:
- php
services:
app:
<<: *common_setup
environment:
CONTAINER_ROLE: app
ports:
- '8000:80'
scheduler:
<<: *common_setup
environment:
CONTAINER_ROLE: scheduler
SCHEDULER_COMMAND: php -d variables_order=EGPCS /var/www/html/run.php --message="Scheduler" --loop=0
SCHEDULER_SLEEP: 3s
worker:
<<: *common_setup
environment:
CONTAINER_ROLE: worker
WORKER_COMMAND: php -d variables_order=EGPCS /var/www/html/run.php --message="Worker" --loop=1
horizon:
<<: *common_setup
environment:
CONTAINER_ROLE: horizon
HORIZON_COMMAND: php -d variables_order=EGPCS /var/www/html/run.php --message="Horizon" --loop=1
networks:
php:
driver: bridge