Answer the question
In order to leave comments, you need to log in
docker-compose and service autostart?
Good afternoon.
There is a docker and several services, everything is launched through docker-compose, today I added a container for backing up the database there.
Is it possible to make this container not start automatically after docker-compose up / start commands?
Answer the question
In order to leave comments, you need to log in
I figured it out, you can do this:
Create an alternative docker-compose.yml, put your service there, make an external link to the main service, in my case it's postgres and run via docker-compose -f ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question