diff options
author | Tilo Spannagel <development@tilosp.de> | 2017-07-13 17:50:04 +0200 |
---|---|---|
committer | Tilo Spannagel <development@tilosp.de> | 2017-09-27 13:29:11 +0200 |
commit | 83b027fbaedbd4c866f795308cedee4f8453c06a (patch) | |
tree | 20866f7b3bae096a172419dc86cae4ecbb925237 /.examples/docker-compose/insecure/mariadb | |
parent | 6a54981de4b6d6f9d74b86ecebc8bfe969d92098 (diff) |
Add insecure docker-compose examples for apache
Diffstat (limited to '.examples/docker-compose/insecure/mariadb')
4 files changed, 44 insertions, 0 deletions
diff --git a/.examples/docker-compose/insecure/mariadb/apache/app/Dockerfile b/.examples/docker-compose/insecure/mariadb/apache/app/Dockerfile new file mode 100644 index 00000000..8c03a7c8 --- /dev/null +++ b/.examples/docker-compose/insecure/mariadb/apache/app/Dockerfile @@ -0,0 +1,3 @@ +FROM nextcloud:apache + +COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php diff --git a/.examples/docker-compose/insecure/mariadb/apache/app/autoconfig.php b/.examples/docker-compose/insecure/mariadb/apache/app/autoconfig.php new file mode 100644 index 00000000..ea7004e9 --- /dev/null +++ b/.examples/docker-compose/insecure/mariadb/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/insecure/mariadb/apache/db.env b/.examples/docker-compose/insecure/mariadb/apache/db.env new file mode 100644 index 00000000..a4366057 --- /dev/null +++ b/.examples/docker-compose/insecure/mariadb/apache/db.env @@ -0,0 +1,3 @@ +MYSQL_PASSWORD= +MYSQL_DATABASE=nextcloud +MYSQL_USER=nextcloud diff --git a/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml new file mode 100644 index 00000000..4f87dbbd --- /dev/null +++ b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3' + +services: + db: + image: mariadb + restart: always + volumes: + - db:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD= + env_file: + - db.env + + app: + build: ./app + restart: always + ports: + - 8080:80 + volumes: + - nextcloud:/var/www/html + env_file: + - db.env + links: + - db + +volumes: + db: + nextcloud: |