Hosting Django application on DigitalOcean
postgresql - Hosting Django Docker Postgres on DigitalOcean Droplets - Stack Overflow
how to dockerize django application and deploy it on ubuntu 18.04
deploy a docker image in general and with django
Videos
Hello there. I have a small django project that I want to deploy to DigitalOcean droplet and connect a domain to it. So far I've decided to use Docker to containerize my application. I now have two containers (one for django and another for postgresql). I've seen an option on DIgitalOcean website to deploy from container images, but I already have my regular Ubuntu droplet with postgresql and docker installed. Now I am confused about what to do next to finally deploy and run my application. I already tried running my containers locally and it works perfectly, but can I somehow deploy the docker images directly to my droplet, or is it only for App Platform? I figured I could somehow pull the project from GitHub and manually add my .env and docker related files, but I am concerned about how secure this approach is. Can someone explain the proper way and also what to do with secrets like database and smpt credentials? I am confused about everything server-related from the beginning, so please let me know if there is any better approach.