mkdir ./mysql_data && mkdir ./wordpress_data
Edit domains and email then run ./generate_certificate.sh
Follow the step then configure dns provider. Be careful, only set _acme-challenge as host (not _acme-challenge.domain.name) with 60sec TTL and the value provided by certbot.
Also configure the wildcard A record (A * ip)
Exemple: (cat ./letsencrypt/live/domain.name/privkey.pem && cat ./letsencrypt/live/domain.name/fullchain.pem) > ./letsencrypt/live/domain.name/bundle.pem
MYSQL_ROOT_PASSWORD- SSL certificate path for Haproxy. Exemple:
./letsencrypt/live/domain.name/bundle.pem
docker-compose up -d
docker exec -it mysql mysql -u root -p
create database wordpress;
docker exec -it wordpress bash
define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'root' );
define( 'DB_PASSWORD', 'SQL ROOT PASSWORD' );
define( 'DB_HOST', 'mysql' );
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
@ini_set( 'upload_max_filesize' , '999M' );
@ini_set( 'post_max_size', '999M');
@ini_set( 'memory_limit', '999M' );
@ini_set( 'max_execution_time', '0' );
@ini_set( 'max_input_time', '0' );php_value upload_max_filesize 999M
php_value post_max_size 999M
php_value memory_limit 999M
php_value max_execution_time 0
php_value max_input_time 0