Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.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
dev.biuro
Commits
fee1dbc8
Commit
fee1dbc8
authored
Oct 17, 2018
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial state
parent
57ce3dbb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
119 deletions
+35
-119
README.md
README.md
+33
-4
docker-compose.yml
docker-compose.yml
+2
-5
db_001.sql
docker/mariadb/db_001.sql
+0
-0
wp-config.php
docker/wordpress/wp-config.php
+0
-110
No files found.
README.md
View file @
fee1dbc8
...
...
@@ -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)
## User
-
biuro
(info@biuro.eu)
-
biuro
-
laikinas2587
-
info@biuro.eu
### Wordpress
-
Regions created using
[
Wordpress Network
](
https://codex.wordpress.org/Create_A_Network
)
#### 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
-
`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
-
`docker exec -it mysql bash`
-
`mysql -u
root -pIiIjnsLi2wR9i1kWVbVpUAzP
`
-
`mysql -u
root -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8
`
-
`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
...
...
@@ -46,6 +69,8 @@ Restart docker
-
docker-compose start
-
docker-compose stop
-
docker-compose rm -fv
-
docker ps
-
docker update --restart=no mysql
...
...
@@ -54,6 +79,10 @@ Restart docker
-
docker system prune --all
-
docker stop mysql
-
docker stop nginx
-
docker stop wordpress
-
docker restart mysql
-
docker restart nginx
-
docker restart wordpress
...
...
docker-compose.yml
View file @
fee1dbc8
version
:
'
0.0.0
'
version
:
'
3.7
'
services
:
nginx
:
...
...
@@ -25,9 +25,7 @@ services:
-
./var/mariadb:/var/lib/mysql
environment
:
-
MYSQL_ROOT_PASSWORD=IiIjnsLi2wR9i1kWVbVpUAzP
command
:
mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-method=fsync
command
:
mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --innodb-flush-method=fsync
restart
:
always
wordpress
:
...
...
@@ -43,4 +41,3 @@ services:
links
:
-
mysql
restart
:
always
docker/mariadb/db_001.sql
View file @
fee1dbc8
B
-- MySQL dump 10.16 Distrib 10.3.10-MariaDB, for debian-linux-gnu (x86_64)
docker/wordpress/wp-config.php
deleted
100644 → 0
View file @
57ce3dbb
<?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'
);
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