V
V
Vadim5502021-04-08 15:21:39
Docker
Vadim550, 2021-04-08 15:21:39

How to make docker-compose start automatically on system boot?

I have docker-compose files uploaded to github - https://github.com/goodboy761/Docker-lamp-with-aut...
Can I make the container automatically start when the PC boots up?
If so, how and is it possible to implement this through service?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
unseriously, 2021-04-08
@unseriously

https://docs.docker.com/config/containers/start-co...

D
Dmitry, 2021-04-08
@q2digger

add restart: always to the stack properties
remember: docker-compose is just a tool to start docker containers, and to take a steam bath while indicating networks, links and mappings for each container. after you run the stack once with docker-composite, the parameters of the containers will be saved and they will start with the docker (restart: always).

D
Denis, 2021-04-09
@Norkotik

Via systems, cron, init, your choice)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question