Docker Swarm

Initialize the swarm docker swarm init –listen-addr 195.122.17.92:3000 –advertise-addr 10.10.0.6 We need the –advertise-addr because there are two IP addresses assigned to the same interface. Create a service docker service create –name my-service –publish 3000:3000 my-image:1.0.0 Set the service to be hosted on two nodes docker service update –replicas 2 my-service

PostgreSQL Quickstart

I’ve used mostly MySQL in the past, but a recent project called for working with PostgreSQL. The most immediate difference was that databases and schemas were semantically different. I took a liking to the DBMS – database management system, and plan to be using it in future projects. So, here I will notate some commands […]