Development Environment with Docker Compose
By Fahad Ahammed
- One minute read - 173 wordsThere are a lot of tools I need to work with. Installing some tools in my workstation and bloating the system is not an option with limited memory capacity, specially in MacBook Air M1 with 8GB of ram. So, I am using docker when using those tools. The day to day life depends on these DB tools –
- Redis
- MongoDB
- MySQL in Different Versions
- PostgreSQL
Running these in host system and managing the startup is tiresome. So, I generally use this compose file.
You might see an extra parameter in mysql service- “platform: linux/x86_64”. It is because, as of mysql-8.0.26 docker image from docker hub, It doesn’t run in M1, so explicitly need to pass this platform parameter. I might be wrong about the root cause but that is what fixed the issue for me.
Also there is RedisInsight, which is one of the most useful redis UI tool you can think of. I am loving it.
I will be updating the script when I will move or start using another important tool.