2022-04-06 00:26:50 +03:00
|
|
|
version: "0.5"
|
2022-04-07 00:32:09 +03:00
|
|
|
log_level: info
|
2022-04-06 00:26:50 +03:00
|
|
|
processes:
|
|
|
|
process1:
|
|
|
|
command: "echo process1"
|
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process2:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed_successfully
|
|
|
|
|
|
|
|
process2:
|
2022-04-16 01:44:27 +03:00
|
|
|
command: "echo 'process2 is removing the log'"
|
2022-04-06 00:26:50 +03:00
|
|
|
availability:
|
2022-11-01 01:07:29 +03:00
|
|
|
restart: "on_failure"
|
2022-04-16 01:44:27 +03:00
|
|
|
# max_restarts: 3
|
2022-04-06 00:26:50 +03:00
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process3:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed
|
|
|
|
|
|
|
|
process3:
|
|
|
|
command: "echo 'process3 error' >&2 && exit 1"
|
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process4:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed_successfully
|
|
|
|
|
|
|
|
process4:
|
|
|
|
command: "echo process4"
|
|
|
|
availability:
|
2022-11-01 01:07:29 +03:00
|
|
|
restart: "on_failure"
|
2022-04-06 00:26:50 +03:00
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process5:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed_successfully
|
|
|
|
|
|
|
|
process5:
|
2024-07-26 15:36:05 +03:00
|
|
|
command: "echo 9"
|
2022-04-06 00:26:50 +03:00
|
|
|
availability:
|
2022-11-01 01:07:29 +03:00
|
|
|
restart: "on_failure"
|
2022-04-16 01:44:27 +03:00
|
|
|
backoff_seconds: 1
|
|
|
|
# max_restarts: 3
|
2022-04-06 00:26:50 +03:00
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process6:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed_successfully
|
|
|
|
|
|
|
|
process6:
|
|
|
|
command: "echo process6"
|
|
|
|
availability:
|
2022-11-01 01:07:29 +03:00
|
|
|
restart: "on_failure"
|
2022-04-06 00:26:50 +03:00
|
|
|
log_location: ./pc.proc6.log-test.log
|
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process7:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed_successfully
|
|
|
|
|
|
|
|
process7:
|
|
|
|
command: "echo process7"
|
|
|
|
availability:
|
2022-11-01 01:07:29 +03:00
|
|
|
restart: "on_failure"
|
2022-04-06 00:26:50 +03:00
|
|
|
depends_on:
|
2022-04-07 00:32:09 +03:00
|
|
|
process8:
|
2022-04-06 00:26:50 +03:00
|
|
|
condition: process_completed_successfully
|
|
|
|
|
|
|
|
process8:
|
|
|
|
command: "echo process8"
|
|
|
|
availability:
|
2022-11-01 01:07:29 +03:00
|
|
|
restart: "on_failure"
|
2022-04-06 00:26:50 +03:00
|
|
|
backoff_seconds: 2
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- 'ABC=222'
|
|
|
|
|
|
|
|
log_location: ./pc.log-test.log
|