How to restart a container with every interval timeout in docker-compose.yml
by an option?
This is my simplified docker-compose.yml
:
version: '3'
services:
ivms_app:
build: .
image: an_image
container_name: app_name
restart: unless-stopped
ports:
- "9001:9001"
I have set the restart
option with unless-stopped
attribute. But I want an option for restarting a container with every interval timeout in docker-compose.yml
like this:
interval_restart: 30 # 30 minutes