0
0
Fork 0
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:
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,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
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:

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
app:
build: ./app
image: nextcloud:fpm
restart: always
volumes:
- nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
env_file:
- db.env
depends_on: