1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Merge pull request #8148 from appwrite/chore-remove-compose-version

chore: remove compose version
This commit is contained in:
Jake Barnby 2024-05-24 13:47:40 +12:00 committed by GitHub
commit 5510a25066
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 1 additions and 20 deletions

View file

@ -11,9 +11,7 @@ $httpsPort = $this->getParam('httpsPort', '');
$version = $this->getParam('version', '');
$organization = $this->getParam('organization', '');
$image = $this->getParam('image', '');
?>version: '3'
services:
?>services:
traefik:
image: traefik:2.11
container_name: appwrite-traefik

View file

@ -10,8 +10,6 @@ x-logging: &x-logging
max-file: "5"
max-size: "10m"
version: "3"
services:
traefik:
image: traefik:2.11

View file

@ -27,14 +27,6 @@ class Compose
}
}
/**
* @return string
*/
public function getVersion(): string
{
return (isset($this->compose['version'])) ? $this->compose['version'] : '';
}
/**
* @return Service[]
*/

View file

@ -1,5 +1,3 @@
version: '3'
services:
traefik:
image: traefik:2.2

View file

@ -21,11 +21,6 @@ class ComposeTest extends TestCase
$this->object = new Compose($data);
}
public function testVersion(): void
{
$this->assertEquals('3', $this->object->getVersion());
}
public function testServices(): void
{
$this->assertCount(15, $this->object->getServices());