@@ -22,23 +22,38 @@ Buggregator offers different versions for different needs:
2222This is the most recent officially released version, recommended for most users.
2323
2424``` bash
25- docker run --pull always -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregator/server:latest
25+ docker run --pull always \
26+ -p 127.0.0.1:8000:8000 \
27+ -p 127.0.0.1:1025:1025 \
28+ -p 127.0.0.1:9912:9912 \
29+ -p 127.0.0.1:9913:9913 \
30+ ghcr.io/buggregator/server:latest
2631```
2732
2833### Latest Dev Release
2934
3035This version includes the latest features and updates but might be less stable.
3136
3237``` bash
33- docker run --pull always -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregator/server:dev
38+ docker run --pull always \
39+ -p 127.0.0.1:8000:8000 \
40+ -p 127.0.0.1:1025:1025 \
41+ -p 127.0.0.1:9912:9912 \
42+ -p 127.0.0.1:9913:9913 \
43+ ghcr.io/buggregator/server:dev
3444```
3545
3646### Specific Version
3747
3848If you need a particular version of Buggregator, you can choose to install that specific one.
3949
4050``` bash
41- docker run -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregator/server:v1.00
51+ docker run \
52+ -p 127.0.0.1:8000:8000 \
53+ -p 127.0.0.1:1025:1025 \
54+ -p 127.0.0.1:9912:9912 \
55+ -p 127.0.0.1:9913:9913 \
56+ ghcr.io/buggregator/server:v1.0
4257```
4358
4459> ** Note:**
@@ -50,17 +65,18 @@ docker run -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregat
50651 . Create a ` docker-compose.yml ` file in your project directory.
51662 . Add the following service definition to your file:
5267
68+ We recommend publishing ports only on a local server, as shown in the example below:
69+
5370``` yaml
5471services :
5572 # ...
56-
5773 buggregator :
5874 image : ghcr.io/buggregator/server:dev
5975 ports :
60- - 8000:8000
61- - 1025:1025
62- - 9912:9912
63- - 9913:9913
76+ - 127.0.0.1: 8000:8000
77+ - 127.0.0.1: 1025:1025
78+ - 127.0.0.1: 9912:9912
79+ - 127.0.0.1: 9913:9913
6480` ` `
6581
66823. Run ` docker-compose up` in your CLI.
@@ -73,3 +89,47 @@ interface, ready to collect and display debugging information from your applicat
7389And that's it! You've successfully installed it on your local machine using Docker. You can now start using it
7490to streamline your debugging process. If you encounter any issues or have questions, don't hesitate to refer to the
7591official documentation or seek help from the community.
92+
93+ # # Port Configuration Advice:
94+
95+ Here are descriptions of the ports used by Buggregator :
96+
97+ - **8000**: This port is used for the following
98+ modules : [HTTP Dumps](./config/http-dumps.md), [Sentry](./config/sentry.md), [Ray](./config/ray.md), [Inspector](./config/inspector.md), [XHProf](./config/xhprof.md).
99+ - **1025**: This port is designated for [SMTP](./config/smtp.md).
100+ - **9912**: This port is used for [Symfony Var-Dumper](./config/var-dumper.md).
101+ - **9913**: This port is allocated for [Monolog](./config/monolog.md).
102+
103+ # ## Stay Secure
104+
105+ By default, the ports are set to listen only on the localhost (`127.0.0.1`), enhancing security by preventing external
106+ access.
107+
108+ > **Warning**
109+ > Publishing container ports is insecure by default, meaning when you publish a container's ports, they become available
110+ > not only to the Docker host but also to the outside world. If you include the localhost IP address (127.0.0.1) with,
111+ > only the Docker host can access the published container port.
112+
113+ If you require external access to these ports, you can remove `127.0.0.1:` from the respective port forwarding rules.
114+ However, be cautious as this will make the ports accessible from outside your local network.
115+
116+ Like this :
117+
118+ ` ` ` bashn --pull always \
119+ -p 8000:8000 \
120+ -p ...
121+ ghcr.io/buggregator/server:latest
122+ ` ` `
123+
124+ # ## Reduce the Number of Open Ports
125+
126+ If you're not utilizing all the features and wish to reduce the number of open ports, you can omit the unused ports from
127+ the command. This step can help minimize the attack surface and maintain a cleaner setup.
128+
129+ For example, if you use only var-dumper, you can omit the other ports, like this :
130+
131+ ` ` ` bash
132+ docker run --pull always \
133+ -p 127.0.0.1:9912:9912 \
134+ ghcr.io/buggregator/server:latest
135+ ` ` `
0 commit comments