Merge pull request #54 from tompizmor/master

Set ALLOW_EMPTY_PASSWORD env var for mariadb image
This commit is contained in:
tompizmor
2017-03-03 13:33:50 +01:00
committed by GitHub
3 changed files with 10 additions and 2 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'
magento:

View File

@@ -34,6 +34,8 @@ version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'mariadb_data:/bitnami/mariadb'
magento:
@@ -72,7 +74,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 magento-tier bitnami/mariadb
$ docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes --net magento-tier bitnami/mariadb
```
*Note:* You need to give the container a name in order to Magento to resolve the host
@@ -107,6 +109,8 @@ version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- /path/to/mariadb-persistence:/bitnami/mariadb
magento:
@@ -136,7 +140,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 magento-tier \
--volume /path/to/mariadb-persistence:/bitnami/mariadb \
bitnami/mariadb:latest

View File

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