Use restart policy unless-stopped (#811)

Ensures Docker automatically restarts services (containers) that were running on the host prior to a reboot.
This commit is contained in:
h44z 2022-12-23 13:24:27 +01:00 committed by GitHub
parent be973ec739
commit 973565c2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ services:
discovery.type: single-node
networks:
- elk
restart: unless-stopped
logstash:
build:
@ -78,6 +79,7 @@ services:
- elk
depends_on:
- elasticsearch
restart: unless-stopped
kibana:
build:
@ -94,6 +96,7 @@ services:
- elk
depends_on:
- elasticsearch
restart: unless-stopped
networks:
elk: