Skip to content

Instantly share code, notes, and snippets.

version: "2"
services:
node1:
container_name: node1
image: percona/percona-xtradb-cluster:5.7
environment:
- CLUSTER_NAME=cluster1
- MYSQL_ROOT_PASSWORD=root
networks:
- pxc-network
@frazr
frazr / docker-compose.yml
Created March 24, 2018 00:06
Percona XtraDB Example
version: "2"
services:
node1:
container_name: node1
image: percona/percona-xtradb-cluster:5.7
environment:
- CLUSTER_NAME=cluster1
- MYSQL_ROOT_PASSWORD=root
networks:
- pxc-network
DestroyFunc ResizeNonMaximized
AddToFunc ResizeNonMaximized
+ I ThisWindow (!Maximized) Resize
Mouse 3 W 4 Resize-on-Drag
DestroyFunc Resize-on-Drag
AddToFunc Resize-on-Drag
+ C Menu MenuWindowOps
+ I Raise
+ M ResizeNonMaximized
/* FilesTable */
public function initialize(array $config)
{
parent::initialize($config);
$this->table('files');
$this->displayField('name');
$this->primaryKey('id');
$this->addBehavior('Timestamp');
$webShop = $this->WebShops->get($id, [
'contain' => [
'ArticleGroups.Images' => function($q) use ($limit) {
return $q->limit($limit);
}
]
]);
$company = $this->Companies->find()->where(['Companies.id' => $id])->contain(['ArticleGroups','Locations'])->first();
if ($this->request->is(['patch', 'post', 'put'])) {
$company = $this->Companies->patchEntity($company, $this->request->data);
if ($this->Companies->save($company)) {
$this->Flash->success(__('The company has been saved.'));
} else {
$this->Flash->error(__('The company could not be saved. Please, try again.'));
}
}