mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Add restart: always (#550)
* Update docker-compose.yml.dist * Update docker-compose.elk.yml.dist * Update README.md
This commit is contained in:
parent
62c20295f9
commit
393f47d085
|
@ -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'
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ services:
|
|||
- ENABLE_ELK_FORWARDER=1
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
restart: always
|
||||
elk:
|
||||
build: elk
|
||||
ports:
|
||||
|
@ -28,6 +29,7 @@ services:
|
|||
- "9200:9200"
|
||||
- "5044:5044"
|
||||
- "5000:5000"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
maildata:
|
||||
|
|
|
@ -23,6 +23,7 @@ services:
|
|||
- DMS_DEBUG=0
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
maildata:
|
||||
|
|
Loading…
Reference in a new issue