Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Andweb\Yml;
- use Nette;
- class DefaultSettings
- {
- use Nette\SmartObject;
- protected $arr;
- public function getDefaultSettings()
- {
- $this->arr['version'] = '3.6';
- $this->arr['ports']['mode'] = 'host';
- $this->arr['labels']['name'] = 'aw-awesome-hosting';
- $this->arr['labels']['value'] = 'yes';
- $this->arr['deploy']['replicas'] = 1;
- $this->arr['deploy']['restart_policy']['delay'] = "10s";
- $this->arr['deploy']['restart_policy']['window'] = "30s";
- $this->arr['deploy']['update_config'] = [
- 'parallelism' => 1,
- 'delay' => '30s',
- 'order' => 'stop-first',
- ];
- $this->arr['deploy']['resources']['reservations'] = [
- 'cpus' => '0.25',
- 'memory' => '1G',
- ];
- $this->arr['networks']['external'] = "true";
- return $this->arr;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement