Hello, I'm Maneshwar. I'm building git-lrc, an AI code reviewer that runs on every commit. It is free, unlimited, and source-available on Github. Star Us to help devs discover the project. Do give it a try and share your feedback for improving the product.
Hi there! Right now, I’m building a first-of-its-kind tool that helps you automatically index API endpoints across all your repositories. makes it easier to discover, understand, and interact with APIs in large infrastructures.When working with containers, managing data is just as important as running the app.
Docker offers multiple ways to handle data persistence and sharing—volumes.
Let’s break down the different types of volumes and how to use them with docker-compose.
1. Named Volumes
Docker manages these under /var/lib/docker/volumes. You define and reference them by name.
Example:
version: '3.8'
services:
db:
image: postgres:15
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
- Volume
pgdatawill persist even if the container is removed. - It can be reused by other services too.
2. Anonymous Volumes
No name given. Docker generates a random volume ID.
Example:
version: '3.8'
services:
app:
image: myapp
volumes:
- /var/www/data
- The
/var/www/datapath in the container is backed by a randomly created volume. - These are not easily reusable and can pile up if not managed.
3. Bind Mounts
Mounts a specific path from the host directly into the container.
Example:
version: '3.8'
services:
web:
image: nginx
volumes:
- ./html:/usr/share/nginx/html:ro
- Changes on your host (
./html) reflect live inside the container. - Ideal for local development and live reloading.
4. tmpfs Mounts
A mount in RAM. Fast and volatile—data disappears after container stops.
Example:
version: '3.8'
services:
scratch:
image: alpine
command: sleep 3600
tmpfs:
- /tmp/cache
- Good for scratch space, secrets, build caches, or anything ephemeral.
5. Volume Plugins / External Volumes
For using storage from NFS, cloud providers, etc.
Example with external NFS volume:
version: '3.8'
services:
app:
image: myapp
volumes:
- nfs-data:/data
volumes:
nfs-data:
driver: local
driver_opts:
type: nfs
o: addr=192.168.1.100,rw
device: ":/exported/path"
- Useful in cluster setups or multi-host Docker environments.
Quick Recap
| Type | Persist | Host Access | Good For |
|---|---|---|---|
| Named Volume | ✅ | ❌ | App data (db, logs) |
| Anonymous Volume | ✅ | ❌ | Ephemeral container data |
| Bind Mount | ✅ | ✅ | Local dev, config files |
| tmpfs | ❌ | ❌ | Temp data, secrets, cache |
| Plugin/Remote | ✅ | varies | Multi-host or cloud storage |
Final Tip
To inspect volumes:
docker volume ls
docker volume inspect <volume_name>
To clean up unused:
docker volume prune
*AI agents write code fast. They also silently remove logic, change behavior, and introduce bugs -- without telling you. You often find out in production.
git-lrc fixes this. It hooks into git commit and reviews every diff before it lands. 60-second setup. Completely free.*
Any feedback or contributors are welcome! It's online, source-available, and ready for anyone to use.
⭐ Star it on GitHub:
HexmosTech
/
git-lrc
Free, Micro AI Code Reviews That Run on Git Commit
| 🇩🇰 Dansk | 🇪🇸 Español | 🇮🇷 Farsi | 🇫🇮 Suomi | 🇯🇵 日本語 | 🇳🇴 Norsk | 🇵🇹 Português | 🇷🇺 Русский | 🇦🇱 Shqip | 🇨🇳 中文 | 🇮🇳 हिन्दी |
git-lrc
Free, Micro AI Code Reviews That Run on Commit
GenAI today is a race car without brakes. It accelerates fast -- you describe something, and large blocks of code appear instantly. But AI agents silently break things: they remove logic, relax constraints, introduce expensive cloud calls, leak credentials, and change behavior -- without telling you. You often find out in production.
git-lrc is your braking system. It hooks into git commit and runs an AI review on every diff before it lands. 60-second setup. Completely free.
In short, git-lrc helps Prevent Outages, Breaches, and Technical Debt Before They Happen
At a glance: 10 risk categories · 100+ failure patterns tracked · every commit…

Top comments (0)