Compare commits
2 Commits
c19b73e3f0
...
9079afd570
| Author | SHA1 | Date | |
|---|---|---|---|
| 9079afd570 | |||
| 93e0971050 |
@@ -11,26 +11,30 @@
|
|||||||
# - Change ports
|
# - Change ports
|
||||||
|
|
||||||
# TBD locate these at ../../Volumes and create `prep.sh` script.
|
# TBD locate these at ../../Volumes and create `prep.sh` script.
|
||||||
volumes:
|
#volumes:
|
||||||
wordpress:
|
# wordpress:
|
||||||
db:
|
# db:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
wp-app:
|
wp-app:
|
||||||
|
container_name: wp-app
|
||||||
image: wordpress
|
image: wordpress
|
||||||
|
depends_on:
|
||||||
|
- wp-db
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
environment:
|
environment:
|
||||||
WORDPRESS_DB_HOST: wp-db
|
WORDPRESS_DB_HOST: wp-db
|
||||||
WORDPRESS_DB_USER: $WORDPRESS_DB_USER
|
WORDPRESS_DB_NAME: $MARIADB_DATABASE
|
||||||
WORDPRESS_DB_PASSWORD: $WORDPRESS_DB_PASSWORD
|
WORDPRESS_DB_USER: $MARIADB_USER
|
||||||
WORDPRESS_DB_NAME: $WORDPRESS_DB_NAME
|
WORDPRESS_DB_PASSWORD: $MARIADB_PASSWORD
|
||||||
|
WORDPRESS_DEBUG: $WORDPRESS_DEBUG
|
||||||
WP_CPU: $WP_CPU
|
WP_CPU: $WP_CPU
|
||||||
WP_MEM: $WP_MEM
|
WP_MEM: $WP_MEM
|
||||||
volumes:
|
volumes:
|
||||||
- wordpress:/var/www/html
|
- ../../Volumes/WordPress/wordpress:/var/www/html
|
||||||
deploy:
|
deploy:
|
||||||
mode: global
|
mode: global
|
||||||
resources:
|
resources:
|
||||||
@@ -39,17 +43,20 @@ services:
|
|||||||
memory: $WP_MEM
|
memory: $WP_MEM
|
||||||
|
|
||||||
wp-db:
|
wp-db:
|
||||||
image: mysql:8.0
|
container_name: wp-db
|
||||||
|
image: mariadb:lts
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: $WORDPRESS_DB_NAME
|
# https://mariadb.com/docs/server/server-management/automated-mariadb-deployment-and-administration/docker-and-mariadb/mariadb-server-docker-official-image-environment-variables
|
||||||
MYSQL_USER: $WORDPRESS_DB_USER
|
MARIADB_DATABASE: $MARIADB_DATABASE
|
||||||
MYSQL_PASSWORD: WORDPRESS_DB_PASSWORD
|
MARIADB_USER: $MARIADB_USER
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
MARIADB_PASSWORD: MARIADB_PASSWORD
|
||||||
|
MARIADB_ROOT_PASSWORD: $MARIADB_ROOT_PASSWORD
|
||||||
|
MARIADB_AUTO_UPGRADE: $MARIADB_AUTO_UPGRADE
|
||||||
WP_CPU_DB: $WP_CPU_DB
|
WP_CPU_DB: $WP_CPU_DB
|
||||||
WP_MEM_DB: $WP_MEM_DB
|
WP_MEM_DB: $WP_MEM_DB
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/mysql
|
- ../../Volumes/WordPress/mariadb:/var/lib/mysql
|
||||||
deploy:
|
deploy:
|
||||||
mode: global
|
mode: global
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -2,14 +2,32 @@
|
|||||||
|
|
||||||
COMPOSE_BAKE=true
|
COMPOSE_BAKE=true
|
||||||
|
|
||||||
|
|
||||||
|
## WordPress ##
|
||||||
|
|
||||||
|
# Uncomment this to get ebug output in the log.
|
||||||
|
#WORDPRESS_DEBUG=1
|
||||||
|
|
||||||
|
## End WordPress ##
|
||||||
|
|
||||||
|
|
||||||
## Database ##
|
## Database ##
|
||||||
WORDPRESS_DB_HOST=db
|
|
||||||
WORDPRESS_DB_USER=exampleuser
|
MARIADB_DATABASE=wordpress
|
||||||
WORDPRESS_DB_PASSWORD=examplepass
|
|
||||||
WORDPRESS_DB_NAME=exampledb
|
MARIADB_USER=wp
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD=1
|
MARIADB_PASSWORD=db_wp_password
|
||||||
|
|
||||||
|
MARIADB_ROOT_PASSWORD=db_root_password
|
||||||
|
|
||||||
|
# Comment this if you do not want MariaDB to run upgrade scripts on new versions.
|
||||||
|
MARIADB_AUTO_UPGRADE=1
|
||||||
|
|
||||||
|
## End Database ##
|
||||||
|
|
||||||
|
|
||||||
## Performance ##
|
## Performance ##
|
||||||
|
|
||||||
# Standard Minimum
|
# Standard Minimum
|
||||||
#WP_CPU=1.00
|
#WP_CPU=1.00
|
||||||
#WP_MEM=2.00G
|
#WP_MEM=2.00G
|
||||||
@@ -29,7 +47,9 @@ MYSQL_RANDOM_ROOT_PASSWORD=1
|
|||||||
#WP_MEM_DB=0.10G
|
#WP_MEM_DB=0.10G
|
||||||
|
|
||||||
# Tested Recommended
|
# Tested Recommended
|
||||||
#WP_CPU=1.00
|
WP_CPU=1.00
|
||||||
#WP_MEM=1.00G
|
WP_MEM=1.00G
|
||||||
#WP_CPU_DB=0.25
|
WP_CPU_DB=0.25
|
||||||
#WP_MEM_DB=0.25G
|
WP_MEM_DB=0.25G
|
||||||
|
|
||||||
|
## End Performance ##
|
||||||
|
|||||||
Reference in New Issue
Block a user