A
A
Arsen Abakarov2016-08-25 20:18:32
Docker
Arsen Abakarov, 2016-08-25 20:18:32

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

2 answer(s)
A
Arsen Abakarov, 2016-08-25
@ArsenAbakarov

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 ...

P
Pavel, 2016-08-25
@pvlg

docker-compose up service1 service2 service3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question