You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I develop locally with docker and push my django code up to Heroku. I tend to use a lot of containers for a single project.
docker-compose -f docker-compose.yml -f docker-compose.debug.yml up -d
[+] Running 8/8
✔ Network myproject_default Created 0.1s
✔ Container myproject-db-1 Started 2.3s
✔ Container myproject-mailhog-1 Started 2.6s
✔ Container myproject-redis-1 Started 2.3s
✔ Container myproject-web-1 Started 2.5s
✔ Container myproject-celery-beat-1 Started 2.5s
✔ Container myproject-celery-1 Started 2.6s
✔ Container myproject-celery-flower-1 Started
After reading Michael's book, I really want to try his approach. Do I create multiple db and redis containers (one for each project/site), or can they share resources so that I need to create fewer containers which might allow me to purchase a smaller server on Hetzner? How can this be accomplished?
And, thinking one step further, I'd also like to be able to run some PHP/MySQL containers/projects for some older projects and WordPress sites.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Right now I develop locally with docker and push my django code up to Heroku. I tend to use a lot of containers for a single project.
After reading Michael's book, I really want to try his approach. Do I create multiple db and redis containers (one for each project/site), or can they share resources so that I need to create fewer containers which might allow me to purchase a smaller server on Hetzner? How can this be accomplished?
And, thinking one step further, I'd also like to be able to run some PHP/MySQL containers/projects for some older projects and WordPress sites.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions