J
J
Jekson2018-06-29 18:45:21
Django
Jekson, 2018-06-29 18:45:21

Why did the server from Docker stop starting?

I'm running a container on my local machine with a Django project. Made migrations, created a superuser, went to the admin panel - everything is ok. After that, I added new models, added them to the admin panel and made migrations again and applied them:

docker-compose run --rm rest python manage.py makemigrations/migrate

There were no mistakes. After that did
docker-compose stop
docker-compose up -d

As a result, the site became unavailable. I suggested that maybe after making changes it is necessary to recreate the image and did
docker-compose build
The situation has not changed. The docker in the console is launched. With the docker for the very first time, tell me what could be the jamb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2018-06-29
@fox_12

well, in docker-compose.yml change the entrypoint line to this:
```
entrypoint: ["tail", "-f", "/dev/null"]
```
start docker-composer, enter the container, and manually start the server and see the errors there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question