WordPress environment variables. See the official image for additional information.
WORDPRESS_DB_NAME
: Name of database used for WordPress in MariaDBWORDPRESS_TABLE_PREFIX
: Prefix appended to all WordPress related tables in theWORDPRESS_DB_NAME
databaseWORDPRESS_DB_HOST
: Hostname of the database server / containerWORDPRESS_DB_PASSWORD
: Database password for theWORDPRESS_DB_USER
. By default 'root' is theWORDPRESS_DB_USER
.
environment:
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME}
- WORDPRESS_TABLE_PREFIX=${WORDPRESS_TABLE_PREFIX}
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST}
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
docker-compose up
Navigate your browser to http://127.0.0.1 and follow the installation prompts
-
Set language
-
Create an administrative user
-
Success
-
Log in as the administrative user, dashboard, view site
Once your site is running you can begin to create and publish any content you'd like in your WordPress instance.