e6bcf43998
Simplify the overall setup and explanation of WordPress in Docker using docker compose
33 lines
924 B
Plaintext
33 lines
924 B
Plaintext
# docker-compose environment file
|
||
#
|
||
# When you set the same environment variable in multiple files,
|
||
# here’s the priority used by Compose to choose which value to use:
|
||
#
|
||
# 1. Compose file
|
||
# 2. Shell environment variables
|
||
# 3. Environment file
|
||
# 4. Dockerfile
|
||
# 5. Variable is not defined
|
||
|
||
# Wordpress Settings
|
||
export WORDPRESS_LOCAL_HOME=./wordpress
|
||
export WORDPRESS_UPLOADS_CONFIG=./config/uploads.ini
|
||
export WORDPRESS_DB_HOST=database:3306
|
||
export WORDPRESS_DB_NAME=wordpress
|
||
export WORDPRESS_DB_USER=wordpress
|
||
export WORDPRESS_DB_PASSWORD=password123!
|
||
|
||
# MySQL Settings
|
||
export MYSQL_LOCAL_HOME=./dbdata
|
||
export MYSQL_DATABASE=${WORDPRESS_DB_NAME}
|
||
export MYSQL_USER=${WORDPRESS_DB_USER}
|
||
export MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
|
||
export MYSQL_ROOT_PASSWORD=rootpassword123!
|
||
|
||
# Nginx Settings
|
||
export NGINX_CONF=./nginx/default.conf
|
||
export NGINX_SSL_CERTS=./ssl
|
||
export NGINX_LOGS=./logs/nginx
|
||
|
||
# User Settings
|
||
# TBD |