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)
This commit is contained in:
parent
bdf56ece83
commit
5110ded7e5
8 changed files with 201 additions and 0 deletions
docker
15
docker/app-config.inc.php
Normal file
15
docker/app-config.inc.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?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;
|
Loading…
Add table
Add a link
Reference in a new issue