@@ -7,40 +7,51 @@ keywords:
7
7
---
8
8
9
9
With Docker Universal Control Plane you can deploy applications from the
10
- UI. You can define your application on the UI, or import an existing
11
- docker-compose.yml file.
12
-
13
- In this example, we're going to deploy a WordPress application.
10
+ UI using ` docker-compose.yml ` files. In this example, we're going to deploy a
11
+ WordPress application.
14
12
15
13
## Deploy WordPress
16
14
17
15
On your browser, ** log in** to UCP, and navigate to the ** Applications** page.
18
- There, click the ** Compose Application ** button, to deploy a new application.
16
+ There, click the ** Deploy compose.yml ** button, to deploy a new application.
19
17
20
18
![ ] ( ../images/deploy-app-ui-1.png )
21
19
22
20
The WordPress application we're going to deploy is composed of two services:
23
21
24
- * wordpress: The container that runs Apache, PHP, and WordPress.
22
+ * wordpress: The service that runs Apache, PHP, and WordPress.
25
23
* db: A MariaDB database used for data persistence.
26
24
27
- <!-- would be better if this was a docker-compose v2 file-->
28
-
29
- ``` yml
30
- wordpress :
31
- image : wordpress
32
- links :
33
- - db:mysql
34
- ports :
35
- - 8080:80
36
-
37
- db :
38
- image : mariadb
39
- environment :
40
- MYSQL_ROOT_PASSWORD : example
25
+ ``` none
26
+ version: '2'
27
+
28
+ services:
29
+ db:
30
+ image: mysql:5.7
31
+ volumes:
32
+ - db_data:/var/lib/mysql
33
+ restart: always
34
+ environment:
35
+ MYSQL_ROOT_PASSWORD: wordpress
36
+ MYSQL_DATABASE: wordpress
37
+ MYSQL_USER: wordpress
38
+ MYSQL_PASSWORD: wordpress
39
+
40
+ wordpress:
41
+ depends_on:
42
+ - db
43
+ image: wordpress:latest
44
+ ports:
45
+ - "8000:80"
46
+ restart: always
47
+ environment:
48
+ WORDPRESS_DB_HOST: db:3306
49
+ WORDPRESS_DB_PASSWORD: wordpress
50
+ volumes:
51
+ db_data:
41
52
```
42
53
43
- Copy-paste the application definition to UCP , and name it 'wordpress' .
54
+ Name the application 'wordpress' , and paste the docker-compose.yml definition .
44
55
You can also upload a docker-compose.yml file from your machine, by clicking on
45
56
the 'Upload an existing docker-compose.yml' link.
46
57
@@ -58,7 +69,7 @@ exposing.
58
69
59
70
![ ] ( ../images/deploy-app-ui-4.png )
60
71
61
- In this example, WordPress can be accessed at ` 192.168.99.106:8080 `.
72
+ In this example, WordPress can be accessed at ` 172.31.18.152:8000 ` .
62
73
Navigate to this address in your browser, to start using the WordPress app you
63
74
just deployed.
64
75
@@ -67,9 +78,9 @@ just deployed.
67
78
68
79
## Limitations
69
80
70
- There are some limitations when deploying application on the UI. You can't
71
- reference any external files, so the following Docker Compose keywords are not
72
- supported :
81
+ There are some limitations when deploying docker-compose.yml applications from
82
+ the UI. You can't reference any external files, so the following Docker
83
+ Compose keywords are not supported:
73
84
74
85
* build
75
86
* dockerfile
0 commit comments