diff --git a/doc/docker/docker-compose.yml b/doc/docker/docker-compose.yml index a2f1bf97eb..7d4b4cfa49 100644 --- a/doc/docker/docker-compose.yml +++ b/doc/docker/docker-compose.yml @@ -42,6 +42,8 @@ services: environment: # MariaDB/MySQL host to use: for internal service use "db", for host database (socket bind-mounted into container) use "localhost" - EGW_DB_HOST=db + # grant host is needed for NOT using localhost / unix domain socket for MySQL/MariaDB + - EGW_DB_GRANT_HOST="172.17.%" # for internal db service you should to specify a root password here AND in db service # a database "egroupware" with a random password is created for you on installation (password is stored in header.inc.php in data directory) #- EGW_DB_ROOT=root diff --git a/doc/docker/fpm/entrypoint.sh b/doc/docker/fpm/entrypoint.sh index fbd8004ce7..9e1c6b5486 100755 --- a/doc/docker/fpm/entrypoint.sh +++ b/doc/docker/fpm/entrypoint.sh @@ -30,7 +30,7 @@ until [ -n "$EGW_SKIP_INSTALL" -a ! -f /var/lib/egroupware/header.inc.php ] || \ --start_db "" --autostart_db "" \ --db_type "${EGW_DB_TYPE:-mysqli}" \ --db_host "${EGW_DB_HOST:-localhost}" \ - --db_grant_host "${EGW_DB_GRANT_HOST:-%}" \ + --db_grant_host "${EGW_DB_GRANT_HOST:-localhost}" \ --db_root "${EGW_DB_ROOT:-root}" \ --db_root_pw "${EGW_DB_ROOT_PW:-}" \ --db_name "${EGW_DB_NAME:-egroupware}" \