You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> With `docker-compose up` it will run a phpmyadmin service, this is created with goal of facilitate the management of the DataBase (not all of us are command ninja). You can stop it when you are not using it with `docker-compose stop wp_phpmyadmin`
13
+
14
+
## Configuring Wordmove
15
+
16
+
Your `Movefile` must be inside `configs/wordmove/`.
17
+
18
+
## Deploying your database
19
+
20
+
We recommend to have a repo for your WordPress site, so the themes and plugins should be deployed by a `git pull` command.
21
+
22
+
> By the moment we don't expose the wordmove entrypoint in the container so you need to login to container and execute the following commands
23
+
24
+
25
+
### Login in to the container
26
+
27
+
`docker-compose run --rm wp_wordmove /bin/bash`
28
+
29
+
### Creating Movefile
30
+
31
+
`wordmove init`
32
+
33
+
### Deploying `uploads` folder
34
+
35
+
`wordmove push --uploads`
36
+
37
+
### Deploying your database
38
+
39
+
`wordmove push --db`
40
+
41
+
> #### The database deploy will overwritte the database on the production site, each comment, post, subscriber that is not in your local database will be lost
42
+
43
+
----------------------------------
44
+
1
45
# PRODUCTION WordPress environment with Docker
2
46
3
47
#### This docker compose was made to have a modern WP dev environment which can be portable, easy to set up and with HTTPS with letsencrypt.
4
48
5
-
> With `docker-compose up` it will run a phpmyadmin service, this is created with goal of facilitate the management of the DataBase (not all of us are command ninja) so we recommend, stop it when you are not using it.
6
-
> `docker-compose stop wp_phpmyadmin`
7
-
8
49
## Start everything
9
50
10
51
You need to pass several arguments such as:
11
52
-**DB_PASS** When the DB is raised this will be its root password
12
53
-**DOMAIN** Put your domain _your-domain.com_. This is needed to the https set up.
13
54
-**EMAIL** Put your email domain _[email protected]_. This is needed to the https set up.
> This will run a phpmyadmin service, this is created with goal of facilitate the management of the DataBase (not all of us are command ninja) so we recommend, stop it when you are not using it.
59
+
> `docker-compose stop wp_phpmyadmin`
60
+
61
+
--------------------------
62
+
63
+
# Common features
64
+
65
+
In this section you will find development and production common features.
16
66
17
67
## Steps to begin with a new WP project
18
68
19
69
1. Create the user using phpmyadmin
20
-
- allow conection from any host
21
-
- create a database with the same name with all priviledges
70
+
- allow connection from any host
71
+
- create a database with the same name with all privileges
22
72
2. Download the WordPress core using
23
73
-`docker-compose run --rm --user=82 wp_server wp core download`
24
74
3. Create your `wp-config` file
@@ -35,6 +85,8 @@ You need to pass several arguments such as:
35
85
36
86
## Changing the PHP version
37
87
88
+
> Remember that if you are on production you must specify docker compose file using `--file docker-compose-production.yml`
0 commit comments