5 ms·
Why do you use the database as an OS service and not in docker? Using it in docker would allow easier local development, and shorter setup time.
by angrais 5y ago
Why do you use the database as an OS service and not in docker?
Using it in docker would allow easier local development, and shorter setup time.
- vbsteven 5y agoFor local development I run the full environment including the database in docker compose. For production some of these projects run alongside each other on the same host and share the database service. Sometimes the database is on another host. A typical host like this would be a 50/month Hetzner dedicated machine with only docker daemon and postgres installed natively. And then multiple projects deployed with docker compose. Sometimes nginx is native as well with vhosts pointing to the docker projects. Edit: s/ghosts/vhosts/
- axlee 5y agoIt is really not recommended to run (production) databases in Docker, unless you know what you are doing. https://vsupalov.com/database-in-docker/ https://vsupalov.com/database-in-docker/