# Biuro websites

## Information 
- Project repository [dev.biuro](http://git.biuro.lt/biuro/dev.biuro)
- Created from [wordpress-nginx-docker](https://github.com/mjstealey/wordpress-nginx-docker)
- SSL Certificates are created with [SSL For Free](https://www.sslforfree.com/?domains=biuro.lt%20www.biuro.lt%20dev.biuro.lt%20staging.biuro.lt%20biuro.lv%20www.biuro.lv%20dev.biuro.lv%20staging.biuro.lv%20biuro.ee%20www.biuro.ee%20dev.biuro.ee%20staging.biuro.ee)

## 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)

## 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`

#### Plugins


