Use autoconfig.php provided by the image
This commit is contained in:
parent
4fbd273cb0
commit
0548adf1c1
@ -1,5 +1,3 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
||||
|
||||
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
|
||||
|
@ -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' => '',
|
||||
);
|
@ -23,6 +23,8 @@ services:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,5 +1,3 @@
|
||||
FROM nextcloud:fpm
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
||||
|
||||
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
|
||||
|
@ -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' => '',
|
||||
);
|
@ -21,6 +21,8 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -13,12 +13,14 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:fpm
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -13,10 +13,12 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -10,12 +10,14 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:fpm
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -10,10 +10,12 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,5 +1,3 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
||||
|
||||
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
|
||||
|
@ -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' => '',
|
||||
);
|
@ -25,6 +25,8 @@ services:
|
||||
- VIRTUAL_HOST=
|
||||
- LETSENCRYPT_HOST=
|
||||
- LETSENCRYPT_EMAIL=
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,5 +1,3 @@
|
||||
FROM nextcloud:fpm
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
||||
|
||||
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
|
||||
|
@ -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' => '',
|
||||
);
|
@ -21,6 +21,8 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -13,7 +13,7 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
@ -21,6 +21,8 @@ services:
|
||||
- VIRTUAL_HOST=
|
||||
- LETSENCRYPT_HOST=
|
||||
- LETSENCRYPT_EMAIL=
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:fpm
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -13,10 +13,12 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -10,7 +10,7 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
@ -18,6 +18,8 @@ services:
|
||||
- VIRTUAL_HOST=
|
||||
- LETSENCRYPT_HOST=
|
||||
- LETSENCRYPT_EMAIL=
|
||||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:fpm
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -10,10 +10,12 @@ services:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
build: ./app
|
||||
image: nextcloud:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
env_file:
|
||||
- db.env
|
||||
depends_on:
|
||||
|
Loading…
Reference in New Issue
Block a user