Use autoconfig.php provided by the image

This commit is contained in:
Tilo Spannagel 2017-09-05 23:41:20 +02:00
parent 4fbd273cb0
commit 0548adf1c1
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
36 changed files with 32 additions and 160 deletions

View File

@ -1,5 +1,3 @@
FROM nextcloud:apache FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php COPY redis.config.php /usr/src/nextcloud/config/redis.config.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -23,6 +23,8 @@ services:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,5 +1,3 @@
FROM nextcloud:fpm FROM nextcloud:fpm
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php COPY redis.config.php /usr/src/nextcloud/config/redis.config.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -21,6 +21,8 @@ services:
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -13,12 +13,14 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:apache
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:fpm
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -13,10 +13,12 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?php
$AUTOCONFIG = array(
'directory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'dbname' => getenv('POSTGRES_DB'),
'dbuser' => getenv('POSTGRES_USER'),
'dbpass' => getenv('POSTGRES_PASSWORD'),
'dbhost' => 'db',
'dbtableprefix' => '',
);

View File

@ -10,12 +10,14 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:apache
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:fpm
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?php
$AUTOCONFIG = array(
'directory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'dbname' => getenv('POSTGRES_DB'),
'dbuser' => getenv('POSTGRES_USER'),
'dbpass' => getenv('POSTGRES_PASSWORD'),
'dbhost' => 'db',
'dbtableprefix' => '',
);

View File

@ -10,10 +10,12 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,5 +1,3 @@
FROM nextcloud:apache FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php COPY redis.config.php /usr/src/nextcloud/config/redis.config.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -25,6 +25,8 @@ services:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
- LETSENCRYPT_EMAIL= - LETSENCRYPT_EMAIL=
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,5 +1,3 @@
FROM nextcloud:fpm FROM nextcloud:fpm
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php COPY redis.config.php /usr/src/nextcloud/config/redis.config.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -21,6 +21,8 @@ services:
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -13,7 +13,7 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:apache
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
@ -21,6 +21,8 @@ services:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
- LETSENCRYPT_EMAIL= - LETSENCRYPT_EMAIL=
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:fpm
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?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' => '',
);

View File

@ -13,10 +13,12 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?php
$AUTOCONFIG = array(
'directory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'dbname' => getenv('POSTGRES_DB'),
'dbuser' => getenv('POSTGRES_USER'),
'dbpass' => getenv('POSTGRES_PASSWORD'),
'dbhost' => 'db',
'dbtableprefix' => '',
);

View File

@ -10,7 +10,7 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:apache
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
@ -18,6 +18,8 @@ services:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
- LETSENCRYPT_EMAIL= - LETSENCRYPT_EMAIL=
environment:
- POSTGRES_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on:

View File

@ -1,3 +0,0 @@
FROM nextcloud:fpm
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?php
$AUTOCONFIG = array(
'directory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'dbname' => getenv('POSTGRES_DB'),
'dbuser' => getenv('POSTGRES_USER'),
'dbpass' => getenv('POSTGRES_PASSWORD'),
'dbhost' => 'db',
'dbtableprefix' => '',
);

View File

@ -10,10 +10,12 @@ services:
- db.env - db.env
app: app:
build: ./app image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
env_file: env_file:
- db.env - db.env
depends_on: depends_on: