mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 22:17:24 +08:00
Set ALLOW_EMPTY_PASSWORD env var for mariadb image
This commit is contained in:
@@ -2,6 +2,8 @@ version: '2'
|
||||
services:
|
||||
mariadb:
|
||||
image: 'bitnami/mariadb:latest'
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
volumes:
|
||||
- 'mariadb_data:/bitnami/mariadb'
|
||||
ghost:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,6 +2,8 @@ version: '2'
|
||||
services:
|
||||
mariadb:
|
||||
image: 'bitnami/mariadb:latest'
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
volumes:
|
||||
- 'mariadb_data:/bitnami/mariadb'
|
||||
ghost:
|
||||
|
||||
Reference in New Issue
Block a user