From 19add3280066c038e6e667f0a0f252f2b12ac2a2 Mon Sep 17 00:00:00 2001 From: AlexxxH <48523389+AlexxxH@users.noreply.github.com> Date: Thu, 3 Aug 2023 18:41:30 +0200 Subject: [PATCH] Add database password to docker installation instructions for espocrm container A custom database password was already set for the MySQL container, add this to the EspoCRM container setup to match (otherwise an error is raised if password is anything other than password) --- docs/administration/docker/installation.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/administration/docker/installation.md b/docs/administration/docker/installation.md index 4b7890cd4..812b105af 100644 --- a/docs/administration/docker/installation.md +++ b/docs/administration/docker/installation.md @@ -26,17 +26,18 @@ $ docker run --name mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:8 --default-a Run EspoCRM container: ``` -$ docker run --name my-espocrm --link mysql:mysql -d espocrm/espocrm +$ docker run --name my-espocrm -e ESPOCRM_DATABASE_PASSWORD=password --link mysql:mysql -d espocrm/espocrm ``` - `my-espocrm` — name of EspoCRM container, - `mysql:mysql` — name (link) of MySQL container, +- `ESPOCRM_DATABASE_PASSWORD=password` — `password` should match `MYSQL_ROOT_PASSWORD` set in the previous step, - `espocrm/espocrm` — [EspoCRM image](https://hub.docker.com/r/espocrm/espocrm/tags) version. #### Run EspoCRM container via a specific port: ``` -$ docker run --name my-espocrm -p 8080:80 --link mysql:mysql -d espocrm/espocrm +$ docker run --name my-espocrm -e ESPOCRM_DATABASE_PASSWORD=password -p 8080:80 --link mysql:mysql -d espocrm/espocrm ``` Then, access it via `http://localhost:8080` with credentials admin and password. @@ -44,7 +45,7 @@ Then, access it via `http://localhost:8080` with credentials admin and password. #### Run EspoCRM via a specific IP or a domain with a port: ``` -$ docker run --name my-espocrm -e ESPOCRM_SITE_URL=http://172.20.0.100:8080 -p 8080:80 --link mysql:mysql -d espocrm/espocrm +$ docker run --name my-espocrm -e ESPOCRM_SITE_URL=http://172.20.0.100:8080 -e ESPOCRM_DATABASE_PASSWORD=password -p 8080:80 --link mysql:mysql -d espocrm/espocrm ``` Then, access it via `http://172.20.0.100:8080` with credentials **admin** and **password**.