Back to Portainer

Add a new service

user/docker/services/add.md

1.23.22.4 KB
Original Source

Add a new service

From the menu click Services then click Add service.

<figure><figcaption></figcaption></figure>

Complete the fields, using the table below as a guide.

Field/OptionOverview
NameGive the service a descriptive name.
RegistrySelect the registry that contains the image you wish to use for the service.
ImageEnter the name of the image. If you're using Docker Hub you can also search for images from here.
Scheduling modeSelect either to replicate the service on the same host or deploy it globally with one container on each host.
ReplicasSet the number of replicas (only if the scheduling mode is set to Replicated).
Port mappingDefine the ports to expose on the new service.
Create a service webhookToggle on to create a webhook for the service. You can send a POST request to this endpoint to automate pulling the most up-to-date image and re-deploy your service.
<figure><figcaption></figcaption></figure>

You can also configure any advanced options for the service in the bottom section.

When you're finished click Create the service.