https://github.com/kiwamizamurai/dockname
Zero-config reverse proxy that makes container routing effortless in development environments
https://github.com/kiwamizamurai/dockname
container development-tools devops docker golang localhost proxy reverse-proxy
Last synced: about 1 month ago
JSON representation
Zero-config reverse proxy that makes container routing effortless in development environments
- Host: GitHub
- URL: https://github.com/kiwamizamurai/dockname
- Owner: kiwamizamurai
- License: mit
- Created: 2025-01-02T04:13:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-10T13:51:28.000Z (over 1 year ago)
- Last Synced: 2025-02-24T16:39:37.280Z (over 1 year ago)
- Topics: container, development-tools, devops, docker, golang, localhost, proxy, reverse-proxy
- Language: Go
- Homepage: https://kiwamizamurai.github.io/dockname/
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# DockName
[](https://hub.docker.com/r/kiwamizamurai/dockname)
[](https://github.com/kiwamizamurai/dockname/blob/main/LICENSE)
[](https://goreportcard.com/report/github.com/kiwamizamurai/dockname)
[](https://hub.docker.com/r/kiwamizamurai/dockname)
DockName is a zero-config reverse proxy that makes container routing effortless in development environments. It automatically detects your containers and makes them accessible via `.localhost` domains based on their service names.
| Solution | Image Size | Relative Size |
|----------|------------|---------------|
| **DockName** | **10.9MB** | **1x (Base)** |
| Traefik | 185MB | 17x larger |
| Nginx Proxy Manager | 1.09GB | 100x larger |
## Features
- 🎯 Zero configuration required - just add the proxy service
- 🎯 Automatic service discovery and routing
- 🔄 Real-time container detection
- 🌐 Automatic `.localhost` domain generation
- 🛡️ Lightweight design optimized for development
## Quick Start
```yaml
services:
proxy:
image: kiwamizamurai/dockname
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
user: root
restart: always
web:
image: nginx:latest
ports:
- "3000:80"
# That's it! Automatically accessible at http://web.localhost
```
Launch:
```bash
docker compose up -d
```
Your services are instantly accessible:
- `http://web.localhost` -> nginx container
- etc...
## How It Works
1. **Automatic Service Discovery**:
- DockName detects your running containers
- Uses service names from Docker Compose
- Automatically finds exposed ports
2. **Smart Domain Generation**:
- Creates domains based on service names
- Example: `web` service -> `web.localhost`
- No `/etc/hosts` editing needed
3. **Port Detection**:
- Automatically detects container ports
- Uses first exposed port by default
- Supports both published and internal ports
## License
MIT License - See [LICENSE](LICENSE) file for details.