Set ALLOW_EMPTY_PASSWORD env var for mariadb image

This commit is contained in:
Tomas Pizarro 2017-03-02 12:22:11 +00:00
parent 71d4853619
commit f56a1e97ec
3 changed files with 15 additions and 5 deletions

View File

@ -2,6 +2,8 @@ version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'mariadb_data:/bitnami/mariadb'
wordpress:

View File

@ -31,7 +31,9 @@ version: '2'
services:
mariadb:
image: bitnami/mariadb:latest
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- mariadb_data:/bitnami/mariadb
wordpress:
@ -77,7 +79,7 @@ If you want to run the application manually instead of using `docker-compose`, t
```bash
$ docker volume create --name mariadb_data
$ docker run -d --name mariadb \
$ docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes \
--net wordpress-tier \
--volume mariadb_data:/bitnami/mariadb \
bitnami/mariadb:latest
@ -113,7 +115,9 @@ The following `docker-compose.yml` template demonstrates the use of host directo
version: '2'
services:
mariadb:
image: bitnami/mariadb:latest
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- /path/to/mariadb-persistence:/bitnami/mariadb
wordpress:
@ -138,7 +142,7 @@ services:
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 wordpress-tier \
--volume /path/to/mariadb-persistence:/bitnami/mariadb \
bitnami/mariadb:latest
@ -233,7 +237,9 @@ version: '2'
services:
mariadb:
image: bitnami/mariadb:latest
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- mariadb_data:/bitnami/mariadb
wordpress:

View File

@ -2,6 +2,8 @@ version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'mariadb_data:/bitnami/mariadb'
wordpress: