diff --git a/02_wordpress/README.md b/02_wordpress/README.md index dba3b9e..d0e8437 100644 --- a/02_wordpress/README.md +++ b/02_wordpress/README.md @@ -13,10 +13,11 @@ ## Create a MariaDB database -* Deploy the `mariadb:10` image, using a `deployment` of one replica, exposing an environment variable called `MYSQL_ROOT_PASSWORD` containing the password of your choice and exposing the port `3306`. - -#FIXME: the default config seems to only listen on localhost - +* Deploy the `mariadb:10` image: + * Using a `deployment` of one replica + * Exposing an environment variable called `MYSQL_ROOT_PASSWORD` containing the password of your choice + * Exposing an environment variable called `MYSQL_DATABASE` with the value `wordpress` (to automatically create an empty database at MariaDB startup) + * Exposing the port `3306`. * Create a `service` to expose the MariaDB server. * Resume the Wordpress setup to use the newly created database. * Delete the mariadb container to have it recreated. diff --git a/02_wordpress/yaml/04_deployment.yaml b/02_wordpress/yaml/04_deployment.yaml index bada669..3f2eaa0 100644 --- a/02_wordpress/yaml/04_deployment.yaml +++ b/02_wordpress/yaml/04_deployment.yaml @@ -21,5 +21,7 @@ spec: env: - name: MYSQL_ROOT_PASSWORD value: securepassword + - name: MYSQL_DATABASE + value: wordpress # vim: set ts=2 sw=2 et: