Deploying Django App With Docker & PostgreSQL To Digital Ocean

$ docker-compose -f docker-compose-common.yml -f docker-compose-local-dev.yml up --build
$ ssh root@174.138.25.136
$ docker-compose -f docker-compose-common.yml -f docker-compose-prod.yml up --build
$ docker ps
$ docker exec -it <container name> /bin/bash
$ docker exec -it abcd1234/bin/bash
$ python3 manage.py createsuperuser

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store