Organize your Docker container ports by category for clarity and easy management.
Port Range | Category | Examples / Notes |
---|---|---|
3000β3099 | Development | Web apps, dev servers, testing environments |
3100β3199 | Networking | Proxies, VPNs, load balancers |
3200β3299 | Monitoring & Logging | Tools like Netdata, Prometheus, ELK stack |
3300β3399 | Databases | MySQL, PostgreSQL, MongoDB |
3400β3499 | Caching & Queues | Redis, RabbitMQ, Memcached |
3500β3599 | CI/CD & Automation | Jenkins, GitLab Runner, Drone |
3600β3699 | Messaging & Communication | MQTT brokers, chat servers, email servers |
3700β3799 | Media & Streaming | Plex, Jellyfin, streaming services |
3800β3899 | Security & Authentication | OAuth servers, LDAP, Vault |
3900β3999 | Misc / Custom | Custom apps or less common services |
Port | Service | Common Use Case |
---|---|---|
80 | HTTP | Web traffic |
443 | HTTPS | Secure web traffic |
8080 | Alternate HTTP | Dev servers, proxy apps |
8443 | Alternate HTTPS | Secure dev servers |
9000 | Often used by monitoring | e.g., Netdata, SonarQube |
5432 | PostgreSQL default port | Database connections |
27017 | MongoDB default port | Database connections |
- Always check if the port is free before assigning to avoid conflicts π¦
- Use
.env
files to manage port variables in your Docker Compose setups π§ - Document your port assignments especially if youβre in a team π
- Keep ports above 3000 for custom apps to avoid clashes with common system services βοΈ
Happy Dockering! π³β¨