This commit is contained in:
Shihaam Abdul Rahman 2022-10-08 04:03:24 +05:00
parent 57be7631a5
commit 7aa6a681a1
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
2 changed files with 14 additions and 4 deletions

View File

@ -102,7 +102,7 @@ $CONFIG = [
*
* Defaults to ``sqlite3``
*/
'dbtype' => 'sqlite3',
'dbtype' => 'mysql',
/**
* Your host server name, for example ``localhost``, ``hostname``,
@ -110,7 +110,7 @@ $CONFIG = [
* ``hostname:####``; to specify a Unix socket use
* ``/path/to/directory/containing/socket`` e.g. ``/run/postgresql/``.
*/
'dbhost' => '',
'dbhost' => 'db',
/**
* The name of the Nextcloud database, which is set during installation. You
@ -123,13 +123,13 @@ $CONFIG = [
* across Nextcloud instances using the same SQL database. This is set up during
* installation, so you shouldn't need to change it.
*/
'dbuser' => '',
'dbuser' => 'nextcloud',
/**
* The password for the database user. This is set up during installation, so
* you shouldn't need to change it.
*/
'dbpassword' => '',
'dbpassword' => 'nextcloud',
/**
* Prefix for the Nextcloud tables in the database.

View File

@ -13,3 +13,13 @@ services:
- ./logs:/root/logs
ports:
- 8000:80
#########################
db:
image: mysql:8
environment:
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
MYSQL_ALLOW_EMPTY_PASSWORD: true
volumes:
- ./database:/var/lib/mysql