Emmanuel BENOîT
5110ded7e5
This commit adds a Docker Compose file which will run the application using docker. The application is fronted by Traefik, and runs using PHP-fpm. nginx is used to accept queries from Traefik and relay them to the PHP-fpm containers (Traefik doesn't support FastCGI directly). Sessions are shared between the various PHP containers using memcached. Part of this work is based on [this repo](https://github.com/wandersonwhcr/docker-nginx-php-fpm)
15 lines
655 B
PHP
15 lines
655 B
PHP
<?php
|
|
|
|
ini_set('session.save_handler', 'memcached');
|
|
ini_set('session.save_path', getenv('MEMCACHED_HOST') . ':11211');
|
|
|
|
$config[ 'core' ][ 'db' ][ 'host' ] = getenv('DB_HOST');
|
|
$config[ 'core' ][ 'db' ][ 'name' ] = getenv('DB_NAME');
|
|
$config[ 'core' ][ 'db' ][ 'user' ] = getenv('DB_USER');
|
|
$config[ 'core' ][ 'db' ][ 'password' ] = file_get_contents(getenv('DB_PASSWORD_FILE'));
|
|
|
|
$config[ 'core' ][ 'pages' ][ 'baseURL' ] = getenv('BASE_URL') ?: null;
|
|
$config[ 'core' ][ 'pages' ][ 'baseTitle' ] = 'Tasks';
|
|
|
|
/* Minimal time before a completed task can be deleted. The default is one week. */
|
|
// $config[ 't-data' ][ 'minDeletionTime' ] = 7 * 3600 * 24;
|