diff options
author | Marc Brückner <phoenix_exe@web.de> | 2017-08-16 17:21:07 +0200 |
---|---|---|
committer | Tilo Spannagel <development@tilosp.de> | 2017-09-27 13:29:13 +0200 |
commit | 3c2f4b52e176fee88a848a273fd78f02494d6016 (patch) | |
tree | d88baca77b9c0b03bc67611b7ca3d52e9b830838 /.examples/docker-compose/with-nginx-proxy/apache/app | |
parent | b120af8e7f8a150ca01cc847753579987364c55a (diff) |
Use custom Dockerfiles instead of mounting files for remote docker #104
Diffstat (limited to '.examples/docker-compose/with-nginx-proxy/apache/app')
3 files changed, 25 insertions, 0 deletions
diff --git a/.examples/docker-compose/with-nginx-proxy/apache/app/Dockerfile b/.examples/docker-compose/with-nginx-proxy/apache/app/Dockerfile new file mode 100644 index 00000000..2d54bc41 --- /dev/null +++ b/.examples/docker-compose/with-nginx-proxy/apache/app/Dockerfile @@ -0,0 +1,4 @@ +FROM nextcloud:apache + +COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php +COPY redis.php /usr/src/nextcloud/config/redis.php diff --git a/.examples/docker-compose/with-nginx-proxy/apache/app/autoconfig.php b/.examples/docker-compose/with-nginx-proxy/apache/app/autoconfig.php new file mode 100644 index 00000000..ea7004e9 --- /dev/null +++ b/.examples/docker-compose/with-nginx-proxy/apache/app/autoconfig.php @@ -0,0 +1,10 @@ +<?php +$AUTOCONFIG = array( + 'directory' => '/var/www/html/data', + 'dbtype' => 'mysql', + 'dbname' => getenv('MYSQL_DATABASE'), + 'dbuser' => getenv('MYSQL_USER'), + 'dbpass' => getenv('MYSQL_PASSWORD'), + 'dbhost' => 'db', + 'dbtableprefix' => '', +); diff --git a/.examples/docker-compose/with-nginx-proxy/apache/app/redis.php b/.examples/docker-compose/with-nginx-proxy/apache/app/redis.php new file mode 100644 index 00000000..9f8b5d2b --- /dev/null +++ b/.examples/docker-compose/with-nginx-proxy/apache/app/redis.php @@ -0,0 +1,11 @@ +<? +$CONFIG = array ( + 'memcache.locking' => '\\OC\\Memcache\\Redis', + 'filelocking.enabled' => 'true', + 'redis' => + array ( + 'host' => 'redis', + 'port' => 6379, + ), +); +?> |