mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-24 20:34:10 +02:00
Use autoconfig.php provided by the image
This commit is contained in:
parent
4fbd273cb0
commit
0548adf1c1
36 changed files with 32 additions and 160 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue