add service and stack pages
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 122 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,119 @@
|
|||
# Configure Service Options
|
||||
|
||||
Before of after you deploy a service, you can configure a wide range of options to your service. In this article, we going to review each option available that you can use from Portainer.
|
||||
|
||||
To make additions or changes of configuration, you need go to <b>Services</b> and choose the service you want configure.
|
||||
|
||||
## Container Specification
|
||||
|
||||
### Environment Variables
|
||||
|
||||
The environment variables are useful to set configuration at the same time that the container is created. If you need to add new environment variables after that service was deployed, you can do it.
|
||||
|
||||

|
||||
|
||||
### Labels
|
||||
|
||||
Containers labels can be used to leave notes of that container or specify configuration.
|
||||
|
||||

|
||||
|
||||
### Mounts
|
||||
|
||||
You can mount or bind volumes from Portainer. Also, you can set if that volume needs to set in Read Only. The only thing you need to do is select a created volume, specify the path in container and click in <b>Apply Changes</b>.
|
||||
|
||||

|
||||
|
||||
## Networks & ports
|
||||
|
||||
### Networks
|
||||
|
||||
You can define one or more networks to you service, even, after of deploy it. You only need to create your network and then, select from the dropdown list.
|
||||
|
||||

|
||||
|
||||
### Published Ports
|
||||
|
||||
Here, you can publish ports to access to this container from outside the host. You can set new or modify the current ports.
|
||||
|
||||

|
||||
|
||||
### Host file entries
|
||||
|
||||
When you need to specify manually a hostname or url, you can set up from here and associated that URL to a internal or external IP Address.
|
||||
|
||||

|
||||
|
||||
## Service specification
|
||||
|
||||
### Resource limits and reservations
|
||||
|
||||
From Portiner, you can set limitations about the resource utilization, like Memory, CPU Reservation, CPU Limit, etc.
|
||||
|
||||

|
||||
|
||||
### Placement constraints
|
||||
|
||||
Use placement constraints to control the nodes a service can be assigned to.
|
||||
|
||||

|
||||
|
||||
### Placement preferences
|
||||
|
||||
While placement constraints limit the nodes a service can run on, placement preferences try to place tasks on appropriate nodes in an algorithmic way (currently, only spread evenly).
|
||||
|
||||

|
||||
|
||||
### Restart Policy
|
||||
|
||||
Docker provides restart policies to control whether your containers start automatically when they exit, or when Docker restarts. Restart policies ensure that linked containers are started in the correct order.
|
||||
|
||||
The options are the following:
|
||||
|
||||
* Any: Restart under any condition (Restarted host or Docker daemon).
|
||||
* On Failure: Restart the container if it exits due to an error, which manifests as a non-zero exit code.
|
||||
* None: Do not automatically restart the container.
|
||||
|
||||
Also, you can adjust Restart Delay, Max Attempts and Restart Window.
|
||||
|
||||

|
||||
|
||||
### Update Configuration
|
||||
|
||||
Updates a service as described by the specified parameters. The parameters are the same as docker service create. Refer to the description there for further information.
|
||||
|
||||
Normally, updating a service will only cause the service’s tasks to be replaced with new ones if a change to the service requires recreating the tasks for it to take effect.
|
||||
|
||||

|
||||
|
||||
### Logging Driver
|
||||
|
||||
Docker includes multiple logging mechanisms to help you get information from running containers and services. These mechanisms are called logging drivers.
|
||||
|
||||
Each Docker daemon has a default logging driver, which each container uses unless you configure it to use a different logging driver.
|
||||
|
||||

|
||||
|
||||
### Service Labels
|
||||
|
||||
Add metadata to containers using Docker labels. You can use either an array or a dictionary.
|
||||
|
||||
It’s recommended that you use reverse-DNS notation to prevent your labels from conflicting with those used by other software.
|
||||
|
||||

|
||||
|
||||
### Configs
|
||||
|
||||
Docker 17.06 introduces swarm service configs, which allow you to store non-sensitive information, such as configuration files, outside a service’s image or running containers. This allows you to keep your images as generic as possible, without the need to bind-mount configuration files into the containers or use environment variables.
|
||||
|
||||

|
||||
|
||||
### Secrets
|
||||
|
||||
In terms of Docker Swarm services, a secret is a blob of data, such as a password, SSH private key, SSL certificate, or another piece of data that should not be transmitted over a network or stored unencrypted in a Dockerfile or in your application’s source code.
|
||||
|
||||

|
||||
|
||||
## Notes
|
||||
|
||||
[Contribute to these docs](https://github.com/portainer/portainer-docs/blob/master/contributing.md).
|
|
@ -0,0 +1,15 @@
|
|||
# Rollback a Service
|
||||
|
||||
After make a change to a service in Docker Swarm, you can rollback that changes if you applications is not working as expected. You can do this rollback from Portainer UI.
|
||||
|
||||
## Rollbacking a Service
|
||||
|
||||
To rollback a service to the last state, it's very easy trough Portainer. Do a click in <b>Services</b>, choose the service you want to rollback, and then do a click in <b>Rollback the service</b>.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 138 KiB |
|
@ -0,0 +1,17 @@
|
|||
# Inspect a Stack
|
||||
|
||||
In Portainer, you can inspect your stacks to see where are running or access to their logs and stats.
|
||||
|
||||
## Inspecting a Stack
|
||||
|
||||
To inspect the task associated to your stack, log in in Portainer, do a click in <b>Stacks</b> and then choose what stack you want to inspect.
|
||||
|
||||

|
||||
|
||||
Here you can view where the service part of this stack are running or stopped, how much replicas running in which host. Also, you can access to logs, inspect of these tasks, stats and even access to the container console.
|
||||
|
||||

|
||||
|
||||
## Notes
|
||||
|
||||
[Contribute to these docs](https://github.com/portainer/portainer-docs/blob/master/contributing.md).
|
|
@ -48,6 +48,8 @@ nav:
|
|||
- Stacks:
|
||||
- 'Add/Create a Stack' : 'v2.0/stacks/create.md'
|
||||
- 'Create a template from a Stack' : 'v2.0/stacks/template.md'
|
||||
- 'Duplicate / Migrate Stacks' : 'v2.0/stacks/duplicate_migration.md'
|
||||
- 'Inspect a Stack' : 'v2.0/stacks/inspect.md'
|
||||
- Containers:
|
||||
- 'Create New Container' : 'v2.0/containers/create.md'
|
||||
- Services:
|
||||
|
@ -55,6 +57,8 @@ nav:
|
|||
- 'Scaling a Service' : 'v2.0/services/scale.md'
|
||||
- 'View Service Logs' : 'v2.0/services/logs.md'
|
||||
- 'Service Task Status' : 'v2.0/services/status.md'
|
||||
- 'Configure Service Options' : 'v2.0/services/options.md'
|
||||
- 'Rollback a Service' : 'v2.0/services/rollback.md'
|
||||
- Applications:
|
||||
- 'Create a New Application' : 'v2.0/apps/create.md'
|
||||
- Volumes:
|
||||
|
|