tasks/docker/app-config.inc.php
Emmanuel BENOîT 5110ded7e5
feat: support running using Docker Compose
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)
2025-01-05 21:09:27 +01:00

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;