Skip to content

Commit

Permalink
Allow user to specify a different database charset via environment va…
Browse files Browse the repository at this point in the history
…riable (visiblevc#137)

* Allow to specify a different database charset via environment variable

* Formatting fix in README
  • Loading branch information
signaleleven authored and dsifford committed May 25, 2018
1 parent d909f9e commit d02e1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ To access the Wordpress Admin at `/wp-admin`, the default values are as follows:
| `DB_HOST` | `db` | Hostname for the database |
| `DB_NAME` | `wordpress` | Name of the database |
| `DB_PREFIX` | `wp_` | Prefix for the database |
| `DB_CHARSET` | `utf8` | Select a charset for the wordpress database (legacy versions might not be utf8) |
| `SERVER_NAME` | `localhost` | Set this to `<your-domain-name>.<your-top-level-domain>` if you plan on obtaining SSL certificates |
| `ADMIN_EMAIL` | `admin@${DB_NAME}.com` | Administrator email address |
| `WP_DEBUG` | `'false'` | [Click here](https://codex.wordpress.org/WP_DEBUG) for more information |
Expand Down
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ config create:
dbpass: ${DB_PASS:-root}
dbprefix: ${DB_PREFIX:-wp_}
dbuser: ${DB_USER:-root}
dbcharset: ${DB_CHARSET:-utf8}
extra-php: |
define('WP_DEBUG', ${WP_DEBUG:-false});
define('WP_DEBUG_LOG', ${WP_DEBUG_LOG:-false});
Expand Down

0 comments on commit d02e1ed

Please sign in to comment.