Docker Community Forums

Share and learn in the Docker community.

Running container in detached mode from compose.yml

(Ninjahalf) #1

I’m starting up a few containers with a docker-compose.yml file and would like at least some of them to start in detached mode.

I can pass this at command line with

docker-compose up -d

But I wonder if it’s possible to specify this sort of thing in the yml file?

(Captainbisquick) #2

I also have this question. Is it not possible?

(Fdesantis00) #3

Is there anybody out there that can answer the question. I too would like to know if its possible to declare detached mode in the compose YAML file.