mirror of
https://github.com/F1bonacc1/process-compose.git
synced 2024-08-17 15:30:30 +03:00
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
version: "0.5"
|
|
log_level: info
|
|
processes:
|
|
process1:
|
|
command: "echo process1"
|
|
depends_on:
|
|
process2:
|
|
condition: process_completed_successfully
|
|
|
|
process2:
|
|
command: "echo 'process2 is removing the log'"
|
|
availability:
|
|
restart: "on_failure"
|
|
# max_restarts: 3
|
|
depends_on:
|
|
process3:
|
|
condition: process_completed
|
|
|
|
process3:
|
|
command: "echo 'process3 error' >&2 && exit 1"
|
|
depends_on:
|
|
process4:
|
|
condition: process_completed_successfully
|
|
|
|
process4:
|
|
command: "echo process4"
|
|
availability:
|
|
restart: "on_failure"
|
|
depends_on:
|
|
process5:
|
|
condition: process_completed_successfully
|
|
|
|
process5:
|
|
command: "python3 -c 'print(str(4+5))'"
|
|
availability:
|
|
restart: "on_failure"
|
|
backoff_seconds: 1
|
|
# max_restarts: 3
|
|
depends_on:
|
|
process6:
|
|
condition: process_completed_successfully
|
|
|
|
process6:
|
|
command: "echo process6"
|
|
availability:
|
|
restart: "on_failure"
|
|
log_location: ./pc.proc6.log-test.log
|
|
depends_on:
|
|
process7:
|
|
condition: process_completed_successfully
|
|
|
|
process7:
|
|
command: "echo process7"
|
|
availability:
|
|
restart: "on_failure"
|
|
depends_on:
|
|
process8:
|
|
condition: process_completed_successfully
|
|
|
|
process8:
|
|
command: "echo process8"
|
|
availability:
|
|
restart: "on_failure"
|
|
backoff_seconds: 2
|
|
|
|
environment:
|
|
- 'ABC=222'
|
|
|
|
log_location: ./pc.log-test.log
|