Custom configs for services

Example with PHPMyAdmin
1. Click "Create service"
2. Choose APACHE+PHP. You can use PHP-FPM as well, but with NGINX.
3. Give a name to the service
4. Paste a link to the PHPMyAdmin repository (https://github.com/phpmyadmin/phpmyadmin)
5. Enable access from the Internet. Set any port you want
6. Write composer install" in Deploy commands
Now we need to add a custom config. It helps to change files inside containers
7. Click "Add custom config" and set the path to it: /var/www/phpadmin/config.inc.php
phpadmin - is a name of this service. Specify your own instead of 'phpadmin'.
8. Paste the content of the config file. In this case, you can find config.sample.inc.php in the GitHub repository. Here it is without the commented strings:
<?php
$cfg['blowfish_secret'] = 'someblowfishsecret';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

$i = 0;

$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'mysql-master';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['host'] = 'mysql-master';
Behind the scene, we have created MySQL service with name "mysql". It has master container with an alias mysql-master. You should specify an alias of your database's master container
9. Choose a host (the port you have opened should be free on the host you want to deploy an app) and click "Create service"
That's all!
You can open this app via IP adress of your host.
Made on
Tilda