public function writeConfig()
    {

        // Create the app/environment folder
        $fs = new FileSystem();
        try {
            $fs->mkdir($this->getDockerComposePath());
        } catch (IOExceptionInterface $e) {
            return false;
        }

        // Create the environments docker-compose file.
        $dumper = new Dumper();
        try {
            $fs->remove($this->getDockerComposePath().'/docker-compose.yml');
            $fs->dumpFile($this->getDockerComposePath().'/docker-compose.yml', $dumper->dump($this->getDockerComposeArray(), 10));

            return true;
        } catch (IOExceptionInterface $e) {
            return false;
        }
    }