Commit fee1dbc8 authored by Simonas's avatar Simonas

initial state

parent 57ce3dbb
...@@ -15,22 +15,45 @@ ...@@ -15,22 +15,45 @@
- check if dev.biuro.lt, dev.biuro.lv, dev.biuro.ee (it should be set in hosts to 127.0.0.1) - check if dev.biuro.lt, dev.biuro.lv, dev.biuro.ee (it should be set in hosts to 127.0.0.1)
## User ## User
- biuro (info@biuro.eu) - biuro
- laikinas2587 - laikinas2587
- info@biuro.eu
### Wordpress ### Wordpress
- Regions created using [Wordpress Network](https://codex.wordpress.org/Create_A_Network) - Regions created using [Wordpress Network](https://codex.wordpress.org/Create_A_Network)
#### DB backup #### DB backup
- `C:\web\dev.biuro> docker exec -i mysql mysqldump --default-character-set=utf8 -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress > docker/mariadb/db_001.sql` - `C:\web\dev.biuro> docker exec -i mysql mysqldump -u root -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress > docker/mariadb/db_001.sql`
#### DB restore #### DB restore
- `C:\web\dev.biuro> cat docker/mariadb/db_001.sql | docker exec -i mysql /usr/bin/mysql --default-character-set=utf8 -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress` - `C:\web\dev.biuro> cat docker/mariadb/db_001.sql | docker exec -i mysql /usr/bin/mysql -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress`
#### DB preview #### DB preview
- `docker exec -it mysql bash` - `docker exec -it mysql bash`
- `mysql -u root -pIiIjnsLi2wR9i1kWVbVpUAzP` - `mysql -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8`
- `use wordpress;` - `use wordpress;`
- `show tables;`
- `use information_schema;`
- `select * from SCHEMATA;`
docker exec -i mysql mysqldump -u root -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress > docker/mariadb/db_001.sql
mysqldump -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress -r utf8.dump
mysqldump -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress -r utf8.dump
docker-compose exec db mysql -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP mysqldump wordpress > docker/mariadb/db_003.sql
docker exec mysql /usr/bin/mysqldump -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress > docker/mariadb/db_004.sql
## Plugins ## Plugins
...@@ -46,6 +69,8 @@ Restart docker ...@@ -46,6 +69,8 @@ Restart docker
- docker-compose start - docker-compose start
- docker-compose stop - docker-compose stop
- docker-compose rm -fv
- docker ps - docker ps
- docker update --restart=no mysql - docker update --restart=no mysql
...@@ -54,6 +79,10 @@ Restart docker ...@@ -54,6 +79,10 @@ Restart docker
- docker system prune --all - docker system prune --all
- docker stop mysql
- docker stop nginx
- docker stop wordpress
- docker restart mysql - docker restart mysql
- docker restart nginx - docker restart nginx
- docker restart wordpress - docker restart wordpress
......
version: '0.0.0' version: '3.7'
services: services:
nginx: nginx:
...@@ -25,9 +25,7 @@ services: ...@@ -25,9 +25,7 @@ services:
- ./var/mariadb:/var/lib/mysql - ./var/mariadb:/var/lib/mysql
environment: environment:
- MYSQL_ROOT_PASSWORD=IiIjnsLi2wR9i1kWVbVpUAzP - MYSQL_ROOT_PASSWORD=IiIjnsLi2wR9i1kWVbVpUAzP
command: command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --innodb-flush-method=fsync
mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-method=fsync
restart: always restart: always
wordpress: wordpress:
...@@ -43,4 +41,3 @@ services: ...@@ -43,4 +41,3 @@ services:
links: links:
- mysql - mysql
restart: always restart: always
B-- MySQL dump 10.16 Distrib 10.3.10-MariaDB, for debian-linux-gnu (x86_64) B-- MySQL dump 10.16 Distrib 10.3.10-MariaDB, for debian-linux-gnu (x86_64)
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
* * MySQL settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://codex.wordpress.org/Editing_wp-config.php
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', 'IiIjnsLi2wR9i1kWVbVpUAzP');
/** MySQL hostname */
define('DB_HOST', 'mysql');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define('AUTH_KEY', 'e57c77f7dabd4993390a16553a12719d36ff2f3d');
define('SECURE_AUTH_KEY', '25550eb24852f41802a907b32db77b2d03d48dcc');
define('LOGGED_IN_KEY', '4b4dec4b70b088530353382b2beddbf002b7a9c7');
define('NONCE_KEY', '57c1406be9a8aa8359ccb3e4695a95d3b7f708de');
define('AUTH_SALT', 'a28cb3d2b2a873fb32f6f551a724cbece95c612a');
define('SECURE_AUTH_SALT', '2bec8f6ef887284990e8236e629f5a2449e24d7c');
define('LOGGED_IN_SALT', '1e0a72754488fa00d47437396e74c6adba151336');
define('NONCE_SALT', 'fd5a6329d1cb85464e3a6e2aa65a4b374390f925');
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define('WP_DEBUG', true);
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'dev.biuro.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', '/' );
// If we're behind a proxy server and using HTTPS, we need to alert Wordpress of that fact
// see also http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
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