Add restart: always (#550)

* Update docker-compose.yml.dist
* Update docker-compose.elk.yml.dist
* Update README.md
This commit is contained in:
strarsis 2017-03-16 16:45:47 +01:00 committed by Thomas VIAL
parent 62c20295f9
commit 393f47d085
3 changed files with 5 additions and 0 deletions

View file

@ -42,6 +42,8 @@ Adapt this file with your FQDN. Install [docker-compose](https://docs.docker.com
Your configs must be mounted in `/tmp/docker-mailserver/`. To understand how things work on boot, please have a look to [start-mailserver.sh](https://github.com/tomav/docker-mailserver/blob/master/target/start-mailserver.sh)
`restart: always` ensures that the mail server container (and ELK container when using the mail server together with ELK stack) is automatically restarted by Docker in cases like a Docker service or host restart or container exit.
```yaml
version: '2'