# Start Storj Docker Container with delay

**URL:** <https://forum.storj.io/t/start-storj-docker-container-with-delay/21439>\
**Category:** Node Operators\
**Tags:** docker, debian-11, hardware\
**Created:** [February 17, 2023, 6:11am UTC](https://forum.storj.io/t/start-storj-docker-container-with-delay/21439 "2023-02-17T06:11:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [February 21, 2023, 1:39am UTC](https://forum.storj.io/t/start-storj-docker-container-with-delay/21439/6 "2023-02-21T01:39:56Z")

</div>

I doubt there is such option in the docker itself, but you may use a `docker-compose.yml` and make each container a service and add dependency, i.e.

> [@Docker compose based node not starting](https://forum.storj.io/t/docker-compose-based-node-not-starting/8339/16):
>
> ```auto
> version: "3.3"
> services:
> <containername>:
> image: storjlabs/storagenode:latest
> container_name: <containername>
> volumes:
> - type: bind
> source: <"/Path/to/identity/files">
> target: /app/identity
> - type: bind
> source: <"/Path/to/Data/storage/location">
> target: /app/config
> ports:
> - 28967:28967/tcp
> - 28967:28967/udp
> - 14002:14002
> restart: unless-stopped
> stop_grace_period: 300s
> environment:
> - WALLET=<WalletID>
> - EMAIL=<Emailaddress>
> - ADDRESS=<example.com:28967>
> - STORAGE=<1TB>
> watchtower:
> image: storjlabs/watchtower
> restart: always
> container_name: watchtower
> command: "<containername> watchtower --stop-timeout 300s"
> volumes:
> - /var/run/docker.sock:/var/run/docker.sock
> depends_on:
> - <containername>
> 
> ```

Use `depends_on:` in each next service to be depended on a previous one

---

_[View the full topic](https://forum.storj.io/t/start-storj-docker-container-with-delay/21439)._
