Add a new service
From the menu click Services then click Add service.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3752558522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiZWHJxqQsgWYd9sI88sO%252Fuploads%252FErBCGLRxjLkjsqz75luc%252F2.15-docker_services_add_service.gif%3Falt%3Dmedia%26token%3D56450a8d-6861-4cec-b271-d70142aaec72&width=768&dpr=4&quality=100&sign=e9d78f17&sv=1)
Complete the fields, using the table below as a guide.
Field/Option | Overview |
---|---|
Name | Give the service a descriptive name. |
Registry | Select the registry that contains the image you wish to use for the service. |
Image | Enter the name of the image. If you're using Docker Hub you can also search for images from here. |
Scheduling mode | Select either to replicate the service on the same host or deploy it globally with one container on each host. |
Replicas | Set the number of replicas (only if the scheduling mode is set to Replicated). |
Port mapping | Define the ports to expose on the new service. |
Create a service webhook | Toggle 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. |
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3752558522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiZWHJxqQsgWYd9sI88sO%252Fuploads%252FLxxktgv5NQOKLdLbKUce%252F2.15-docker_service_create_service.png%3Falt%3Dmedia%26token%3Dca1f46ff-7558-459e-b87e-fa568ddb8be6&width=768&dpr=4&quality=100&sign=341e629a&sv=1)
You can also configure any advanced options for the service in the bottom section.
When you're finished click Create the service.
Last updated