Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
www.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
www.biuro
Commits
b44c01e8
Commit
b44c01e8
authored
Dec 05, 2019
by
Simon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-1.12.2'
parents
f535cd70
3209aacc
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2643 additions
and
207 deletions
+2643
-207
.editorconfig
.editorconfig
+21
-0
.env
.env
+19
-19
.gitattributes
.gitattributes
+1
-0
.gitignore
.gitignore
+4
-4
docker-compose.yml
docker-compose.yml
+119
-119
data-2019-11-28-014501.sql
docker/mariadb/data-2019-11-28-014501.sql
+2414
-0
wp-init.sh
wp-init.sh
+65
-65
No files found.
.editorconfig
0 → 100644
View file @
b44c01e8
# 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
.env
View file @
b44c01e8
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
.gitattributes
0 → 100644
View file @
b44c01e8
* text=auto eol=lf
.gitignore
View file @
b44c01e8
.idea/
var/
wordpress/
logs/nginx/*.log
.idea/
var/
wordpress/
logs/nginx/*.log
docker-compose.yml
View file @
b44c01e8
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
:
{
}
docker/mariadb/data-2019-11-28-014501.sql
0 → 100644
View file @
b44c01e8
This diff is collapsed.
Click to expand it.
wp-init.sh
View file @
b44c01e8
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."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment