-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.json
More file actions
59 lines (59 loc) · 1.74 KB
/
Copy pathexample.config.json
File metadata and controls
59 lines (59 loc) · 1.74 KB
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
{
"mode": "parallel",
"shutdownTimeout": "30s",
"health": {
"port": 8089,
"bindAddr": "127.0.0.1",
"authToken": "{{env://GONNER_HEALTH_TOKEN:}}",
"metrics": true
},
"run": [
{
"name": "NGINX",
"command": "nginx -g 'daemon off;'",
"critical": true,
"stopSignal": "SIGQUIT",
"stopTimeout": "20s",
"user": "www-data",
"logFile": "/var/log/gonner-nginx.log",
"logRotate": { "maxSizeMB": 100, "maxBackups": 5, "compress": true },
"whenAll": [
{ "env": "LARAVEL_WEBSERVER=TRUE" }
],
"commandsBefore": [
{
"workDir": "/app",
"command": "php artisan migrate --force"
}
]
},
{
"name": "Laravel Scheduler",
"workDir": "/app",
"command": "php artisan schedule:work",
"autoRestart": true,
"user": "www-data",
"logFile": "/var/log/gonner-scheduler.log",
"whenAll": [
{ "env": "LARAVEL_SCHEDULER=TRUE" }
]
},
{
"name": "Laravel Queue Worker",
"workDir": "/app",
"command": "php artisan queue:work",
"autoRestart": true,
"instances": 8,
"user": "www-data",
"dependsOn": ["NGINX"],
"logFile": "/var/log/gonner-queues.log",
"whenAll": [
{ "env": "LARAVEL_QUEUE_WORKER=TRUE" },
{ "portOpen": "redis:6379@3s" }
],
"env": {
"QUEUE_CONNECTION": "redis"
}
}
]
}