-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
process-compose-win.yaml
58 lines (52 loc) · 1.24 KB
/
process-compose-win.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
version: "0.5"
log_level: debug
processes:
process0:
command: "ls ddd"
process1:
command: "powershell.exe ./test_loop.ps1 ${PROC4}"
availability:
restart: "on_failure"
backoff_seconds: 2
depends_on:
process2:
condition: process_completed_successfully
process3:
condition: process_completed
# process4:
# condition: process_completed_successfully
environment:
- 'EXIT_CODE=0'
process2:
command: "powershell.exe ./test_loop.ps1 process2"
log_location: ./pc.proc2.log
availability:
restart: "on_failure"
# depends_on:
# process3:
# condition: process_completed_successfully
environment:
- 'ABC=2221'
- 'PRINT_ERR=111'
- 'EXIT_CODE=0'
process3:
command: "powershell.exe ./test_loop.ps1 process3"
availability:
restart: "on_failure"
backoff_seconds: 2
depends_on:
process4:
condition: process_completed_successfully
process4:
command: "powershell.exe ./test_loop.ps1 process4"
# availability:
# restart: on_failure
environment:
- 'ABC=2221'
- 'EXIT_CODE=1'
kcalc:
command: "calc"
disabled: true
environment:
- 'ABC=222'
log_location: ./pc.log