-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (61 loc) · 1.59 KB
/
docker-compose.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
app:
environment:
AUTORUN_ENABLED: true
PHP_FPM_POOL_NAME: "feed-canary_php"
build:
context: .
dockerfile: Dockerfile
volumes:
- './storage:/var/www/html/storage'
healthcheck:
test: curl --fail http://localhost:8080/healthcheck || exit 1
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
scheduler:
build:
context: .
dockerfile: Dockerfile
environment:
PHP_FPM_POOL_NAME: "feed-canary_scheduler"
command: [ "php", "/var/www/html/artisan", "schedule:work" ]
volumes:
- ./storage:/var/www/html/storage
healthcheck:
test: curl --fail http://localhost:8080/healthcheck || exit 1
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
queue:
build:
context: .
dockerfile: Dockerfile
environment:
PHP_FPM_POOL_NAME: "feed-canary_queue"
command: ["php", "/var/www/html/artisan", "queue:work", "--tries=3"]
volumes:
- ./storage:/var/www/html/storage
healthcheck:
test: curl --fail http://localhost:8080/healthcheck || exit 1
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
horizon:
build:
context: .
dockerfile: Dockerfile
environment:
PHP_FPM_POOL_NAME: "feed-canary_horizon"
command: [ "php", "/var/www/html/artisan", "horizon" ]
volumes:
- ./storage:/var/www/html/storage
healthcheck:
test: curl --fail http://localhost:8080/healthcheck || exit 1
interval: 10s
retries: 5
start_period: 10s
timeout: 10s