Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Andweb\Yml;
  4. use Nette;
  5.  
  6. class DefaultSettings
  7. {
  8. use Nette\SmartObject;
  9.  
  10. protected $arr;
  11.  
  12. public function getDefaultSettings()
  13. {
  14.  
  15. $this->arr['version'] = '3.6';
  16. $this->arr['ports']['mode'] = 'host';
  17.  
  18.  
  19. $this->arr['labels']['name'] = 'aw-awesome-hosting';
  20. $this->arr['labels']['value'] = 'yes';
  21.  
  22.  
  23. $this->arr['deploy']['replicas'] = 1;
  24. $this->arr['deploy']['restart_policy']['delay'] = "10s";
  25. $this->arr['deploy']['restart_policy']['window'] = "30s";
  26. $this->arr['deploy']['update_config'] = [
  27. 'parallelism' => 1,
  28. 'delay' => '30s',
  29. 'order' => 'stop-first',
  30. ];
  31.  
  32.  
  33. $this->arr['deploy']['resources']['reservations'] = [
  34. 'cpus' => '0.25',
  35. 'memory' => '1G',
  36. ];
  37.  
  38. $this->arr['networks']['external'] = "true";
  39.  
  40. return $this->arr;
  41. }
  42.  
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement