Commit 3209aacc authored by Simonas's avatar Simonas

release 1.12.2

parent f535cd70
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
PROJECT=biuro-www
IMAGE_NGINX=fholzer/nginx-brotli
IMAGE_MYSQL=mariadb:10.3
IMAGE_WORDPRESS=biuro/web:1.12.1
IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3
DB_NAME=www_biuro
DB_HOST=mysql
DB_USERNAME=www_user
DB_PASSWORD=qzl8pMNV^gZ&c1!7ebVsXqQh
DB_ROOT_PASSWORD=#w1ML4QfWaR*8dBYRL7aZJI$
UID=33
GID=33
NGINX_NAME_LT=www.biuro.lt
NGINX_NAME_LV=www.biuro.lv
NGINX_NAME_EE=www.biuro.ee
PROJECT=biuro-www
IMAGE_NGINX=fholzer/nginx-brotli
IMAGE_MYSQL=mariadb:10.3
IMAGE_WORDPRESS=biuro/web:1.12.2
IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3
DB_NAME=www_biuro
DB_HOST=mysql
DB_USERNAME=www_user
DB_PASSWORD=qzl8pMNV^gZ&c1!7ebVsXqQh
DB_ROOT_PASSWORD=#w1ML4QfWaR*8dBYRL7aZJI$
UID=33
GID=33
NGINX_NAME_LT=www.biuro.lt
NGINX_NAME_LV=www.biuro.lv
NGINX_NAME_EE=www.biuro.ee
* text=auto eol=lf
.idea/
var/
wordpress/
logs/nginx/*.log
.idea/
var/
wordpress/
logs/nginx/*.log
version: '3.6'
services:
mysql:
image: ${IMAGE_MYSQL}
container_name: "${PROJECT}-mysql"
networks:
- "back"
volumes:
- ./docker/mariadb:/docker-entrypoint-initdb.d/
- ./var/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --innodb-flush-method=fsync
restart: always
wordpress:
image: ${IMAGE_WORDPRESS}
container_name: "${PROJECT}-wordpress"
networks:
- "front"
- "back"
volumes:
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./nginx/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./wordpress:/var/www/html
environment:
- WORDPRESS_DB_NAME=${DB_NAME}
- WORDPRESS_DB_HOST=${DB_HOST}
- WORDPRESS_DB_USER=${DB_USERNAME}
- WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
- WORDPRESS_CONFIG_EXTRA=
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', '${NGINX_NAME_LT}');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define( 'COOKIE_DOMAIN', '' );
define( 'ADMIN_COOKIE_PATH', '/' );
define( 'COOKIEPATH', '/' );
define( 'SITECOOKIEPATH', '/' );
define( 'NOBLOGREDIRECT', '' );
define( 'WP_HOME', 'https://${NGINX_NAME_LT}' );
define( 'WP_SITEURL', 'https://${NGINX_NAME_LT}' );
define( 'DISALLOW_FILE_EDIT', false );
links:
- mysql
restart: always
nginx:
image: ${IMAGE_NGINX}
container_name: "${PROJECT}-nginx"
networks:
- front
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/h5bp:/etc/nginx/h5bp
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/redirects:/etc/nginx/redirects
- ./nginx/cache:/var/cache/nginx
- ./logs/nginx:/var/log/nginx
- ./certs:/etc/letsencrypt
- ./certs-data:/data/letsencrypt
- ./wordpress:/var/www/html
links:
- wordpress
restart: always
wordpress-cli:
image: ${IMAGE_WORDPRESS_CLI}
user: "${UID}:${GID}"
container_name: "${PROJECT}-wordpress-cli"
links:
- wordpress
- mysql
networks:
- "back"
volumes:
- './var/wp-cli/cache:/etc/X11/fs/.wp-cli/cache'
- ./wordpress:/var/www/html
- './wp-init.sh:/usr/local/bin/wp-init.sh'
command: >
/bin/sh -c '
sleep 25;
echo "WP CLI init";
wp core update --force;
wp core update-db --network;
wp language core update;
wp language theme update --all;
wp language plugin update --all;
echo "WP CLI done. Ready to use.";
'
networks:
front:
name: "${PROJECT}-front"
back:
name: "${PROJECT}-back"
volumes:
wordpress: { }
wp-content: { }
version: '3.6'
services:
mysql:
image: ${IMAGE_MYSQL}
container_name: "${PROJECT}-mysql"
networks:
- "back"
volumes:
- ./docker/mariadb:/docker-entrypoint-initdb.d/
- ./var/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --innodb-flush-method=fsync
restart: always
wordpress:
image: ${IMAGE_WORDPRESS}
container_name: "${PROJECT}-wordpress"
networks:
- "front"
- "back"
volumes:
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./nginx/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./wordpress:/var/www/html
environment:
- WORDPRESS_DB_NAME=${DB_NAME}
- WORDPRESS_DB_HOST=${DB_HOST}
- WORDPRESS_DB_USER=${DB_USERNAME}
- WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
- WORDPRESS_CONFIG_EXTRA=
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', '${NGINX_NAME_LT}');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define( 'COOKIE_DOMAIN', '' );
define( 'ADMIN_COOKIE_PATH', '/' );
define( 'COOKIEPATH', '/' );
define( 'SITECOOKIEPATH', '/' );
define( 'NOBLOGREDIRECT', '' );
define( 'WP_HOME', 'https://${NGINX_NAME_LT}' );
define( 'WP_SITEURL', 'https://${NGINX_NAME_LT}' );
define( 'DISALLOW_FILE_EDIT', false );
links:
- mysql
restart: always
nginx:
image: ${IMAGE_NGINX}
container_name: "${PROJECT}-nginx"
networks:
- front
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/h5bp:/etc/nginx/h5bp
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/redirects:/etc/nginx/redirects
- ./nginx/cache:/var/cache/nginx
- ./logs/nginx:/var/log/nginx
- ./certs:/etc/letsencrypt
- ./certs-data:/data/letsencrypt
- ./wordpress:/var/www/html
links:
- wordpress
restart: always
wordpress-cli:
image: ${IMAGE_WORDPRESS_CLI}
user: "${UID}:${GID}"
container_name: "${PROJECT}-wordpress-cli"
links:
- wordpress
- mysql
networks:
- "back"
volumes:
- './var/wp-cli/cache:/etc/X11/fs/.wp-cli/cache'
- ./wordpress:/var/www/html
- './wp-init.sh:/usr/local/bin/wp-init.sh'
command: >
/bin/sh -c '
sleep 25;
echo "WP CLI init";
wp core update --force;
wp core update-db --network;
wp language core update;
wp language theme update --all;
wp language plugin update --all;
echo "WP CLI done. Ready to use.";
'
networks:
front:
name: "${PROJECT}-front"
back:
name: "${PROJECT}-back"
volumes:
wordpress: { }
wp-content: { }
This source diff could not be displayed because it is too large. You can view the blob instead.
sleep 30;
echo "WP CLI init"
# !/usr/bin/env sh
# Install WordPress.
# wp core install \
# --path="/var/www/html"\
# --title="Biuro" \
# --admin_user="biuro" \
# --admin_password="laikinas2587" \
# --admin_email="info@biuro.eu" \
# --url="https://dev.biuro.lt" \
# --skip-email
# https://www.exove.com/blog/developing-with-wordpress-part-4-wp-cli-basics/
# https://developer.wordpress.org/cli/commands/
# WP update
wp core update --force
wp core update-db --network
# Update permalink structure.
wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins
# wp option update timezone_string "Europe/Vilnius"
# wp option update date_format "Y-m-d"
wp option update time_format "H:i"
# Install plugins
# wp plugin install permalink-manager --force --activate-network
wp plugin install pods --activate-network
wp plugin install polylang --activate-network
wp plugin install wordpress-seo --activate-network
wp plugin install loco-translate --activate-network;
wp plugin install google-sitemap-generator --activate-network;
# Update all plugins
wp plugin update --all
# Activate plugin.
wp plugin activate akismet --network
wp plugin activate biuro-contacts --network
wp plugin activate biuro-feedbacks --network
wp plugin activate biuro-html --network
wp plugin activate biuro-sections --network
wp plugin activate biuro-services --network
wp plugin activate biuro-values --network
wp plugin activate cookies-warning --network
wp plugin activate data-controller --network
wp plugin activate jobs-importer --network
# WP themes
wp theme update --all
wp theme activate biuro
# Update translations
wp language core update
wp language theme update --all
wp language plugin update --all
echo "WP CLI done. Ready to use."
sleep 30;
echo "WP CLI init"
# !/usr/bin/env sh
# Install WordPress.
# wp core install \
# --path="/var/www/html"\
# --title="Biuro" \
# --admin_user="biuro" \
# --admin_password="laikinas2587" \
# --admin_email="info@biuro.eu" \
# --url="https://dev.biuro.lt" \
# --skip-email
# https://www.exove.com/blog/developing-with-wordpress-part-4-wp-cli-basics/
# https://developer.wordpress.org/cli/commands/
# WP update
wp core update --force
wp core update-db --network
# Update permalink structure.
wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins
# wp option update timezone_string "Europe/Vilnius"
# wp option update date_format "Y-m-d"
wp option update time_format "H:i"
# Install plugins
# wp plugin install permalink-manager --force --activate-network
wp plugin install pods --activate-network
wp plugin install polylang --activate-network
wp plugin install wordpress-seo --activate-network
wp plugin install loco-translate --activate-network;
wp plugin install google-sitemap-generator --activate-network;
# Update all plugins
wp plugin update --all
# Activate plugin.
wp plugin activate akismet --network
wp plugin activate biuro-contacts --network
wp plugin activate biuro-feedbacks --network
wp plugin activate biuro-html --network
wp plugin activate biuro-sections --network
wp plugin activate biuro-services --network
wp plugin activate biuro-values --network
wp plugin activate cookies-warning --network
wp plugin activate data-controller --network
wp plugin activate jobs-importer --network
# WP themes
wp theme update --all
wp theme activate biuro
# Update translations
wp language core update
wp language theme update --all
wp language plugin update --all
echo "WP CLI done. Ready to use."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment