From 4110f118213fba7e4305fddfba9e6658f04e5b73 Mon Sep 17 00:00:00 2001 From: Tomas Pizarro Date: Fri, 3 Mar 2017 12:05:17 +0000 Subject: [PATCH] Set ALLOW_EMPTY_PASSWORD env var for mariadb image --- bitnami/ghost/0/docker-compose.yml | 2 ++ bitnami/ghost/README.md | 8 ++++++-- bitnami/ghost/docker-compose.yml | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bitnami/ghost/0/docker-compose.yml b/bitnami/ghost/0/docker-compose.yml index 504874078416..c55e6e851e2d 100644 --- a/bitnami/ghost/0/docker-compose.yml +++ b/bitnami/ghost/0/docker-compose.yml @@ -2,6 +2,8 @@ version: '2' services: mariadb: image: 'bitnami/mariadb:latest' + environment: + - ALLOW_EMPTY_PASSWORD=yes volumes: - 'mariadb_data:/bitnami/mariadb' ghost: diff --git a/bitnami/ghost/README.md b/bitnami/ghost/README.md index 908c68fa3cb3..52dabf53842b 100644 --- a/bitnami/ghost/README.md +++ b/bitnami/ghost/README.md @@ -30,6 +30,8 @@ version: '2' services: mariadb: image: 'bitnami/mariadb:latest' + environment: + - ALLOW_EMPTY_PASSWORD=yes volumes: - 'mariadb_data:/bitnami/mariadb' ghost: @@ -60,7 +62,7 @@ If you want to run the application manually instead of using docker-compose, the 2. Start a MariaDB database in the network generated: ```bash - $ docker run -d --name mariadb --net=ghost-tier bitnami/mariadb + $ docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes --net=ghost-tier bitnami/mariadb ``` *Note:* You need to give the container a name in order to Ghost to resolve the host @@ -95,6 +97,8 @@ version: '2' services: mariadb: image: 'bitnami/mariadb:latest' + environment: + - ALLOW_EMPTY_PASSWORD=yes volumes: - /path/to/mariadb-persistence:/bitnami/mariadb ghost: @@ -120,7 +124,7 @@ In this case you need to specify the directories to mount on the run command. Th 2. Create a MariaDB container with host volume: ```bash - $ docker run -d --name mariadb \ + $ docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes \ --net ghost-tier \ --volume /path/to/mariadb-persistence:/bitnami/mariadb \ bitnami/mariadb:latest diff --git a/bitnami/ghost/docker-compose.yml b/bitnami/ghost/docker-compose.yml index 23b0df94545a..3a569b56899c 100644 --- a/bitnami/ghost/docker-compose.yml +++ b/bitnami/ghost/docker-compose.yml @@ -2,6 +2,8 @@ version: '2' services: mariadb: image: 'bitnami/mariadb:latest' + environment: + - ALLOW_EMPTY_PASSWORD=yes volumes: - 'mariadb_data:/bitnami/mariadb' ghost: