Commit 20009886 authored by Simon's avatar Simon

Merge branch 'release-1.0.0'

parents 37ae8f5f 9c6da8cd
...@@ -2,7 +2,7 @@ PROJECT=biuro-staging ...@@ -2,7 +2,7 @@ PROJECT=biuro-staging
IMAGE_NGINX=fholzer/nginx-brotli IMAGE_NGINX=fholzer/nginx-brotli
IMAGE_MYSQL=mariadb:10.3 IMAGE_MYSQL=mariadb:10.3
IMAGE_WORDPRESS=biuro/web:0.0.32 IMAGE_WORDPRESS=biuro/web:1.0.0
IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3 IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3
DB_NAME=staging_biuro DB_NAME=staging_biuro
......
...@@ -49,6 +49,7 @@ services: ...@@ -49,6 +49,7 @@ services:
define( 'WP_HOME', 'https://${NGINX_NAME_LT}' ); define( 'WP_HOME', 'https://${NGINX_NAME_LT}' );
define( 'WP_SITEURL', 'https://${NGINX_NAME_LT}' ); define( 'WP_SITEURL', 'https://${NGINX_NAME_LT}' );
define( 'DISALLOW_FILE_EDIT', false ); define( 'DISALLOW_FILE_EDIT', false );
links: links:
- mysql - mysql
restart: always restart: always
...@@ -93,8 +94,39 @@ services: ...@@ -93,8 +94,39 @@ services:
- ./wordpress:/var/www/html - ./wordpress:/var/www/html
- './wp-init.sh:/usr/local/bin/wp-init.sh' - './wp-init.sh:/usr/local/bin/wp-init.sh'
command: command: >
- wp-init.sh /bin/sh -c '
sleep 15;
echo "WP CLI init";
wp core update --force;
wp core update-db --network;
wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins;
# wp option update timezone_string "Manual Offsets/UTC+2";
# wp option update date_format "Y-m-d";
wp option update time_format "H:i";
# 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;
wp plugin update --all;
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 theme update --all;
wp theme activate biuro;
wp language core update;
wp language theme update --all;
wp language plugin update --all;
echo "WP CLI done. Ready to use.";
'
networks: networks:
front: front:
......
This diff is collapsed.
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