mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-25 22:50:28 +01:00
add note about applying memory limit when running in swarm mode
This commit is contained in:
parent
5fd6f66324
commit
e4bb183afa
14
README.md
14
README.md
@ -110,6 +110,20 @@ volumes:
|
|||||||
|
|
||||||
By default, Docker Swarm will restart stopped containers automatically, even when manually stopped. If you plan to have your containers / services stopped during backup, this means you need to apply the `on-failure` restart policy to your service's definitions. A restart policy of `always` is not compatible with this tool.
|
By default, Docker Swarm will restart stopped containers automatically, even when manually stopped. If you plan to have your containers / services stopped during backup, this means you need to apply the `on-failure` restart policy to your service's definitions. A restart policy of `always` is not compatible with this tool.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
When running in Swarm mode, it's also advised to set a hard memory limit on your service (~25MB should be enough in that case):
|
||||||
|
|
||||||
|
```yml
|
||||||
|
services:
|
||||||
|
backup:
|
||||||
|
image: offen/docker-volume-backup:latest
|
||||||
|
deployment:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 25M
|
||||||
|
```
|
||||||
|
|
||||||
## Manually triggering a backup
|
## Manually triggering a backup
|
||||||
|
|
||||||
You can manually trigger a backup run outside of the defined cron schedule by executing the `backup` command inside the container:
|
You can manually trigger a backup run outside of the defined cron schedule by executing the `backup` command inside the container:
|
||||||
|
Loading…
Reference in New Issue
Block a user