summaryrefslogtreecommitdiffstats
path: root/.examples/docker-compose/with-nginx-proxy/apache
diff options
context:
space:
mode:
Diffstat (limited to '.examples/docker-compose/with-nginx-proxy/apache')
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/app/Dockerfile4
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/app/autoconfig.php10
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/app/redis.php (renamed from .examples/docker-compose/with-nginx-proxy/apache/caching.php)0
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/db.env3
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/docker-compose.yml12
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/proxy/Dockerfile3
-rw-r--r--.examples/docker-compose/with-nginx-proxy/apache/proxy/uploadsize.conf (renamed from .examples/docker-compose/with-nginx-proxy/apache/uploadsize.conf)0
7 files changed, 26 insertions, 6 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/caching.php b/.examples/docker-compose/with-nginx-proxy/apache/app/redis.php
index 9f8b5d2b..9f8b5d2b 100644
--- a/.examples/docker-compose/with-nginx-proxy/apache/caching.php
+++ b/.examples/docker-compose/with-nginx-proxy/apache/app/redis.php
diff --git a/.examples/docker-compose/with-nginx-proxy/apache/db.env b/.examples/docker-compose/with-nginx-proxy/apache/db.env
new file mode 100644
index 00000000..a4366057
--- /dev/null
+++ b/.examples/docker-compose/with-nginx-proxy/apache/db.env
@@ -0,0 +1,3 @@
+MYSQL_PASSWORD=
+MYSQL_DATABASE=nextcloud
+MYSQL_USER=nextcloud
diff --git a/.examples/docker-compose/with-nginx-proxy/apache/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/apache/docker-compose.yml
index a186b95b..ab550245 100644
--- a/.examples/docker-compose/with-nginx-proxy/apache/docker-compose.yml
+++ b/.examples/docker-compose/with-nginx-proxy/apache/docker-compose.yml
@@ -13,7 +13,7 @@ networks:
services:
proxy:
- image: jwilder/nginx-proxy
+ build: proxy
ports:
- 80:80
- 443:443
@@ -23,7 +23,6 @@ services:
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- - ./uploadsize.conf:/etc/nginx/conf.d/uploadsize.conf:ro
networks:
- proxy-tier
labels:
@@ -43,9 +42,11 @@ services:
restart: always
app:
- image: nextcloud:apache
+ build: app
volumes:
- nextcloud:/var/www/html
+ env_file:
+ - db.env
environment:
- VIRTUAL_HOST=
- LETSENCRYPT_HOST=
@@ -61,9 +62,8 @@ services:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- - MYSQL_PASSWORD=
+ env_file:
+ - db.env
restart: always
redis:
diff --git a/.examples/docker-compose/with-nginx-proxy/apache/proxy/Dockerfile b/.examples/docker-compose/with-nginx-proxy/apache/proxy/Dockerfile
new file mode 100644
index 00000000..242c84e1
--- /dev/null
+++ b/.examples/docker-compose/with-nginx-proxy/apache/proxy/Dockerfile
@@ -0,0 +1,3 @@
+FROM jwilder/nginx-proxy:alpine
+
+COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf
diff --git a/.examples/docker-compose/with-nginx-proxy/apache/uploadsize.conf b/.examples/docker-compose/with-nginx-proxy/apache/proxy/uploadsize.conf
index 8c1bc580..8c1bc580 100644
--- a/.examples/docker-compose/with-nginx-proxy/apache/uploadsize.conf
+++ b/.examples/docker-compose/with-nginx-proxy/apache/proxy/uploadsize.conf