Skip to content

Commit 696685b

Browse files
committed
Removed mysql passwords of the docker compose example
1 parent 6cc9e0e commit 696685b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
3+
set -e
24

35
echo "-> checking environment variables"
46
test ${GD_DB_HOSTNAME}
57
test ${GD_DB_NAME}
68
test ${GD_DB_USERNAME}
7-
test ${GD_DB_PASSWORD}
89
export GD_DB_TABLE_PREFIX=${GD_DB_TABLE_PREFIX:-"gd_"}
910
export GD_ENCRYPTION_SALT=${GD_ENCRYPTION_SALT:-"changeme"}
1011
export GD_API_ENABLED=${GD_API_ENABLED:-"true"}

examples/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ services:
66
GD_DB_HOSTNAME: mysql
77
GD_DB_NAME: generatedata
88
GD_DB_USERNAME: root
9-
GD_DB_PASSWORD: UnSecUr3dPassW0rd
109
ports:
1110
- 8000:80
1211
links:
1312
- mysql
1413
mysql:
1514
image: mysql:5.7
1615
environment:
17-
MYSQL_ROOT_PASSWORD: UnSecUr3dPassW0rd
16+
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
1817
MYSQL_DATABASE: generatedata

0 commit comments

Comments
 (0)