1
- # Dev environment WordPress with Docker _ ** TIPS** _
1
+ # Dev environment WordPress with Docker _ ** TIPS** _
2
2
3
3
4
4
#### This docker compose was made to have a modern WP dev environment which can be portable, easy to set up and focused on the use of ` wp ` .
@@ -17,23 +17,23 @@ For be able to manipulate easily the files of wordpress you need to:
17
17
1 . Create the user using phpmyadmin
18
18
- allow conection from any host
19
19
- create a database with the same name with all priviledges
20
- 2 . Download the WordPress core using
21
- - ` docker exec wp_server wp core download `
22
- 3 . Create your ` wp-config ` file
23
- - ` docker exec -ti wp_server wp core config --prompt `
20
+ 2 . Download the WordPress core using
21
+ - ` docker-compose exec wp_server wp core download `
22
+ 3 . Create your ` wp-config ` file
23
+ - ` docker-compose exec wp_server wp core config --prompt `
24
24
- 1/12 --dbname=<** dbname** >: ` YOUR_DB_NAME `
25
25
- 2/12 --dbuser=<** dbuser** >: ` USER_CREATED_AT_1 `
26
26
- 3/12 [ --dbpass=<** dbpass** >] : ` PASS_CREATED_AT_1 `
27
27
- 4/12 [ --dbhost=<** dbhost** >] : ` wp_mariadb `
28
28
- 5...12 - Default values set by enter
29
- 4 . Install WordPress site
30
- - ` docker exec -ti wp_server wp core install --prompt `
29
+ 4 . Install WordPress site
30
+ - ` docker-compose exec wp_server wp core install --prompt `
31
31
- 1/6 --url=<** url** >: ` localhost `
32
32
- 2...6 - Your personal configuration
33
33
34
34
## Changing the PHP version
35
35
36
- 1 . stop everything with
36
+ 1 . stop everything with
37
37
- ` docker-compose stop `
38
38
39
39
2 . On the ` docker-compose.yml ` file, on service ` wp_server ` on the section ` args ` leave uncommented the php version that you want
@@ -51,27 +51,4 @@ For be able to manipulate easily the files of wordpress you need to:
51
51
5. To verify the version run
52
52
- ` docker exec wp_server php --version`
53
53
54
- ------------------
55
-
56
- # # DB useful commands
57
- # ## Log into
58
- ` docker exec -ti wp_mariadb mysql -h localhost -u root -pPASSWORD`
59
-
60
- # ## Create db
61
- ` docker exec -ti wp_mariadb mysql -h localhost -u root -pPASSWORD`
62
-
63
- ```
64
- Welcome to the MariaDB monitor. Commands end with ; or \g.
65
- Your MariaDB connection id is 19
66
- Server version: 10.2.7-MariaDB-10.2.7+maria~ jessie mariadb.org binary distribution
67
-
68
- Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
69
-
70
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
71
-
72
- MariaDB [ (none)] > CREATE DATABASE test CHARACTER SET utf8 COLLATE utf8_bin;
73
-
74
- MariaDB [ (none)] > SHOW DATABASES;
75
- ```
76
-
77
54
> Written with [StackEdit](https://stackedit.io/).
0 commit comments