Pros and cons of converting Django's development environment to Docker
For the construction, I referred to here
This time, I would like to talk about my impressions of using this development environment.
Pros
- Postgres environment can be disposable
- Probably the best merit I can think of
- Because it is disposable, you can verify various websites with Postgres.
- OS independent
- Since the same OS runs on Windows, Mac, and Linux, it is unlikely that patterns that do not work on Windows will occur.
Disadvantages
- Obviously, the current framework is not very compatible with Docker in the first place.
- It seems that there is room for further development, such as the need to set Docker from 1 or completely wasting the local development environment.
- Slightly slow compared to local development environment
- Docker itself is not very stable
- In my environment, Postgres stopped working with restarting, and even if I stopped → started, it didn't fix, so I hurriedly built a local operating environment.
- It may not be very compatible with the development environment where the environment construction is intense.
- The learning cost of Docker itself is slightly higher
Finally
Docker is an excellent technology. The question is, isn't the web framework so adapted to Docker?
Postscript
The cause of the error seems to be Postgres corrupted when shutting down the computer
I analyzed it with reference to here.