This is an example of how to configure Wordpress for deployment on Docker container based platforms such as Panubo.
By externalising the configuration you can get closer to 12 Factor App nirvana.
Configuration is done by passing environment variables to the running PHP application:
DB_NAME
- Database NameDB_USER
- Database UserDB_PASS
- Database PasswordDB_HOST
- Database Host
AUTH_KEY
SECURE_AUTH_KEY
LOGGED_IN_KEY
NONCE_KEY
AUTH_SALT
SECURE_AUTH_SALT
LOGGED_IN_SALT
NONCE_SALT
DEBUG
- Enable debugging mode
To get started with Docker Compose / Docker Machine:
git clone https://github.com/voltgrid/voltgrid-wordpress-example.git
docker-compose up
Then open your web browser and point it at the ip shown by docker-machine ip
command.