@@ -8,62 +8,65 @@ redirect_from:
88
99> {% include enterprise_label_shortform.md %}
1010
11- You can deploy and monitor your services from the UCP web UI. In this example
12- we'll deploy an [ NGINX] ( https://www.nginx.com/ ) web server and make it
11+ You can deploy and monitor your services from the UCP web UI. In this example, we'll deploy an [ NGINX] ( https://www.nginx.com/ ) web server and make it
1312accessible on port ` 8000 ` .
1413
15- In your browser, navigate to the UCP web UI and click ** Services** . On the
16- ** Create a Service** page, click ** Create Service** to configure the
17- NGINX service.
18-
19- Fill in the following fields:
14+ To deploy a single service:
2015
21- | Field | Value |
22- | :-------------| :-------------|
23- | Service name | nginx |
24- | Image name | nginx: latest |
25-
26- ![ ] ( ../images/deploy-a-service-1.png ) {: .with-border}
16+ 1 . In your browser, navigate to the UCP web UI and click ** Services** . The ** Create a Service** page opens.
17+ 2 . Click ** Create Service** to configure the
18+ NGINX service.
2719
28- In the left pane, click ** Network** . In the ** Ports** section,
29- click ** Publish Port** and fill in the following fields:
20+ 3 . Complete the fields according to the information provided in the following table:
3021
31- | Field | Value |
32- | :---------------| :--------|
33- | Target port | 80 |
34- | Protocol | tcp |
35- | Publish mode | Ingress |
36- | Published port | 8000 |
22+ | Field | Value |
23+ | :-------------| :-------------|
24+ | Service name | nginx |
25+ | Image name | nginx: latest |
3726
38- ![ ] ( ../images/deploy-a-service-2.png ) {: .with-border}
27+ ![ ] ( ../images/deploy-a-service-1.png ) {: .with-border}
28+ 4 . In the left pane, click ** Network** .
29+ 5 . In the ** Ports** section,
30+ click ** Publish Port** and complete the following fields:
3931
40- Click ** Confirm** to map the ports for the NGINX service.
32+ | Field | Value |
33+ |:---------------|:--------|
34+ | Target port | 80 |
35+ | Protocol | tcp |
36+ | Publish mode | Ingress |
37+ | Published port | 8000 |
4138
42- Once you've specified the service image and ports, click ** Create** to
39+ {: .with-border}
40+ 6 . Click ** Confirm** to map the ports for the NGINX service.
41+ 7 . Specify the service image and ports, and click ** Create** to
4342deploy the service into the UCP cluster.
4443
45- ![ ] ( ../images/deploy-a-service-3.png ) {: .with-border}
44+ {: .with-border}
4645
47- Once the service is up and running, you'll be able to see the default NGINX
48- page, by going to ` http://<node-ip>:8000 ` . In the ** Services** list, click the
46+ Once the service is up and running, you can view the default NGINX
47+ page by going to ` http://<node-ip>:8000 ` . In the ** Services** list, click the
4948** nginx** service, and in the details pane, click the link under
5049** Published Endpoints** .
5150
52- ![ ] ( ../images/deploy-a-service-4.png ) {: .with-border}
51+ {: .with-border}
5352
5453Clicking the link opens a new tab that shows the default NGINX home page.
5554
56- ![ ] ( ../images/deploy-a-service-5.png ) {: .with-border}
55+ {: .with-border}
5756
5857## Use the CLI to deploy the service
5958
6059You can also deploy the same service from the CLI. Once you've set up your
61- [ UCP client bundle] ( ../user-access/cli.md ) , run :
60+ UCP client bundle, enter the following command :
6261
6362``` bash
6463docker service create --name nginx \
6564 --publish mode=ingress,target=80,published=8000 \
6665 --label com.docker.ucp.access.owner=< your-username> \
6766 nginx
6867```
68+ For more information about UCP client bundles, see [ CLI-based access] ( ../user-access/cli.md ) .
6969
70+ ## Where to go next
71+ * [ Deploy a multi-service app] ( https://docs.docker.com/ee/ucp/swarm/deploy-multi-service-app/ )
72+ * [ Deploy application resources to a collection] ( https://docs.docker.com/ee/ucp/swarm/deploy-to-collection/ )
0 commit comments