Commit 8f209c00 authored by Simonas's avatar Simonas

in progress

parent dc1b18e9
.idea/
\ No newline at end of file
.idea/
var/
\ No newline at end of file
......@@ -8,18 +8,52 @@
## Installation
- Install [Docker Desktop](https://www.docker.com/products/docker-desktop) on your machine
- Creating new User on my machine helped me with sharing C drive problem (https://tomssl.com/2018/01/11/sharing-your-c-drive-with-docker-for-windows-when-using-azure-active-directory-azuread-aad/)
- Clone [dev.biuro](http://git.biuro.lt/biuro/dev.biuro) repository
- in Windows PowerShell run `docker-compose up -d`
- `docker ps` command should output existing docker containers (nginx, mysql, wordpress)
- Clone [dev.biuro](http://git.biuro.lt/biuro/dev.biuro) repository
- in Windows PowerShell run `docker-compose up -d`
- `docker ps` command should output existing docker containers (nginx, mysql, wordpress)
- restore DB as written in *DB restore* section
- check if dev.biuro.lt, dev.biuro.lv, dev.biuro.ee (it should be set in hosts to 127.0.0.1)
## Workflow
### Wordpress
- Regions created using [Wordpress Network](https://codex.wordpress.org/Create_A_Network)
### DB backup
- `C:\web\dev.biuro\backup>docker exec -i mysql mysqldump -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress > mysql_001.sql`
#### DB backup
- `C:\web\dev.biuro>docker exec -i mysql mysqldump -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress > docker/mariadb/biuro_002.sql`
#### Plugins
#### DB restore
- `C:\web\dev.biuro>cat docker/mariadb/biuro_001.sql | docker exec -i mysql /usr/bin/mysql -u root -pIiIjnsLi2wR9i1kWVbVpUAzP wordpress`
#### DB preview
- `docker exec -it mysql bash`
- `mysql -u root -pIiIjnsLi2wR9i1kWVbVpUAzP`
- `use wordpress;`
## Plugins
## Known issues (Windows 10)
### Error
### Solution
## Other
- docker-compose up -d
- docker-compose start
- docker-compose stop
- docker ps
- docker update --restart=no mysql
- docker update --restart=no nginx
- docker update --restart=no wordpress
- docker system prune --all
- docker restart mysql
- docker restart nginx
- docker restart wordpress
- https://docs.google.com/document/d/1FiwVoiLvGGmi9V-HPBgJ3gsh3wGswt27csgvfdTU24w/edit?usp=sharing
- https://docs.google.com/spreadsheets/d/1ggnqKuGxFFkLgI6NDZq4PXpRY_whdHX0kjZj7pCP_fk/edit?ts=5b5eaa62#gid=0
- https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=748245000
\ No newline at end of file
......@@ -27,6 +27,7 @@ services:
- MYSQL_ROOT_PASSWORD=IiIjnsLi2wR9i1kWVbVpUAzP
command:
'mysqld --innodb-flush-method=fsync'
restart: always
wordpress:
......
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