Project-Stage-Academy / UA_1155_alpha

UA-1155.Python Project Stage alpha group
3 stars 0 forks source link

Update docker-compose file and .gitignore #35

Closed Thoughtseize1 closed 2 months ago

Thoughtseize1 commented 2 months ago

The problem is that now when you deploy containers, migrations do not happen. Replacing the command in docker-compose.yml: command: python manage.py runserver 0.0.0.0:8000 with command: sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000" ensures that migrations are performed before the server starts. Upon entering pgAdmin, everyone will be able to see our database.

Also, please update the .gitignore file added there mongo-data, postgres-data, and redis-data folders.