Hi,
Below is snip of the docker compose file.
service:
image: xxxxx:latest
restart: always
deploy:
replicas: 2
I want to run two instances of the same image. I want delay between the start of the containers. Container2 should start 30s later than container1. How can i achieve this?
I tried this below code. But it is for updating the containers late and not to delay the start.
service:
image: xxxxx:latest
restart: always
deploy:
replicas: 2
update_config:
delay: 30s
Any idea how can i achieve this?