File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ server without writing config files. It provides an easy to use web UI to manage
5959
6060Note: Make sure to turn off new users signups once you have created the required user(s).
6161
62+ ## Usage
63+
64+ See [ USAGE.md] ( ./docs/USAGE.md )
65+
6266## License
6367
6468The project is open source and is available under the [ AGPL-3.0 License] ( ./LICENSE ) .
Original file line number Diff line number Diff line change 1+ # Usage
2+
3+ ## Reverse Proxy and Load Balancer
4+
5+ - We will use a [ Dozzle] ( https://dozzle.dev/ ) as our example. Its ` docker-compose.yml ` from
6+ its [ website] ( https://dozzle.dev/guide/getting-started#standalone-docker ) is something like this:
7+
8+ ``` yaml
9+ services :
10+ dozzle :
11+ image : amir20/dozzle:latest
12+ volumes :
13+ - /var/run/docker.sock:/var/run/docker.sock
14+ ports :
15+ - 8080:8080
16+ ` ` `
17+
18+ To use it as a reverse proxy or a load balancer endpoint, add the ` fpm-network` docker network to the dozzle
19+ container :
20+
21+ ` ` ` yaml
22+ services:
23+ dozzle:
24+ image: amir20/dozzle:latest
25+ volumes:
26+ - /var/run/docker.sock:/var/run/docker.sock
27+ networks:
28+ - fpm-network
29+
30+ networks:
31+ fpm-network:
32+ external: true
33+ ` ` `
34+
35+ Notice that the `fpm-network` is defined in the `docker-compose.yml` file. This is the same network defined in the [
36+ docker-compose.yml](./../docker-compose.yml) file.
37+
38+ We also removed the `ports` section from the `dozzle` container. This is because our `ferron` service in
39+ the [docker-compose.yml](./../docker-compose.yml) is connected to the `dozzle` service via the `fpm-network` network.
40+ Now you can create a reverse proxy by using `http://dozzle:8080` as the backend URL in the Ferron Proxy Manager web
41+ UI.
42+
43+ A screenshot of the Ferron Proxy Manager web UI with the necessary configuration for a reverse proxy is shown below :
44+
45+ 
46+
47+ You can use the same backend url for a load balancer.
48+
49+ - For docker compose files with multiple services, attach the `fpm-network` to the service that you want to
50+ connect to the reverse proxy or load balancer. This is typically the service which exposes a web UI or the one which
51+ you want to be publicly accessible.
You can’t perform that action at this time.
0 commit comments