3 ms·
This is what we do. We use Docker Swarm and label our database host. Then add a constraint to the service/container i our docker-compose file so that the databa
by hmottestad 10y ago
This is what we do. We use Docker Swarm and label our database host. Then add a constraint to the service/container i our docker-compose file so that the database is always scheduled to that host.
Great thing about this setup is that we can now run the entire production system locally on our laptops and test servers with or without swarm. Everything is deployed in the same way and everyone uses the same versions and configurations (even for our database).