maximization
Fix “Permission Denied” Error from GitHub
Setup HTTPS in Development with Create React App
Deploy to Your Server Using Git
4 Essential Steps to Securing a VPS
Deploying to GitHub Pages? Don’t Forget to Fix Your Links
Host Your Personal Projects on a Single VPS
How do you properly start your first Node.js server in production
From PM2 to Docker: Cluster Mode
From PM2 to Docker: Automatic Restarts
Quickly install MySQL with PhpMyAdmin using Docker
In practice, this leads to different string variations. Every time I read a docker-compose.yml file, I had to refer to the docs or run a quick test to figure out if a volume or a bind mount is used. I wrote a short guide so I wouldn't have to look this stuff up anymore and be able to memorise it by heart.
The gist of it is:
1. No source -> anonymous volume
2. Non-path source -> named volume (defined in a top-level `volumes` key)
3. Relative or absolute path source -> bind mount
Hope this helps some of you out there that trip over this syntax like me.
Stay home and be safe!
Docker Compose syntax: Volume or Bind mount?
- Containers should be in the same network
- Connecting to a container by its name isn't possible in the default network, create on of your own instead
- Make sure you are using the correct IP address
- The network should have ICC enabled (it does by default)
In the article, I elaborate a little bit more on each bullet point and show you a solution. This isn't a comprehensive list, but hopefully it helps some folks who have already spent several hours debugging their issues.
4 possible reasons why your Docker containers can’t talk to each other
A simple deployment pipeline for small scale Docker applications
If you're new to Docker and don't know how to deploy a container, or want to automate the manual work involved, I wrote a guide on setting up a simple deployment pipeline: https://maximorlov.com/automate-your-docker-deployments/Docker adds extra steps to your deployment process that makes it tedious if you have to manually deploy each time you make changes to your code. It's much nicer if you...
Why Docker? What’s all the hype about?
As a NodeJS developer who's a stranger to the DevOps world I've never really understood the hype around Docker.In my quest for answers I read many articles explaining why containers are better than virtual machines, but I've rarely used a VM. Is Docker only beneficial for people who come from the VM world?I wrote an article explaining the benefits of Docker using real-world scenarios that hit...
As an author it's hard to find relevant images for your articles, let alone images with permissive licenses. Drawing them yourself takes up more time but it has several benefits:
- You're free to use them however you want
- They're highly customised (and relevant) for your content
- Ditch the "stock photos" look on your pages
- Add a personal touch to the way you communicate