We assume that you're already familiar with the [core concepts](concepts.md) and you have followed the [integrations instructions](integrations.md) for your environment.
To demonstrate the use of BunkerWeb, we will deploy a basic stack using the setup wizard as an example. See the [examples folder](https://github.com/bunkerity/bunkerweb/tree/v1.6.0-rc1/examples) of the repository to get real-world examples.
Protecting existing web applications already accessible with the HTTP(S) protocol is the main goal of BunkerWeb : it will act as a classical [reverse proxy](https://en.wikipedia.org/wiki/Reverse_proxy) with extra security features.
When using Docker integration, the easiest way of protecting an existing application is to add the web service in the `bw-services` network and then configure them in the web interface :
We will assume that you already have the [Docker autoconf integration](integrations.md#docker-autoconf) stack running on your machine.
🧙🪄 If you want an example using the web interface, you can follow the [Autoconf Wizard](web-ui.md#__tabbed_1_2) documentation (this is an optional step).
=== "Swarm"
!!! warning "Deprecated"
The Swarm integration is deprecated and will be removed in a future release. Please consider using the [Docker autoconf integration](#__tabbed_1_2) instead.
**More information can be found in the [Swarm integration documentation](integrations.md#swarm).**
🧙🪄 If you want an example using the web interface, you can follow the [Swarm Wizard](web-ui.md#__tabbed_1_3) documentation (this is an optional step).
We will assume that you already have the [Swarm integration](integrations.md#swarm) stack running on your cluster and connected to a network called `bw-services` so you can connect your existing application and configure BunkerWeb with labels (as explained in the [Creating a new service](#__tabbed_2_3) section).
=== "Kubernetes"
We will assume that you already have the [Kubernetes integration](integrations.md#kubernetes) stack running on your cluster.
🧙🪄 If you want an example using the web interface, you can follow the [Kubernetes Wizard](web-ui.md#__tabbed_1_4) documentation (this is an optional step).
=== "Linux"
We will assume that you already have the [Linux integration](integrations.md#linux) stack running on your machine.
🧙🪄 If you don't want to use the setup wizard, you will need to run the following command `export UI_WIZARD=no` before installing BunkerWeb as described in [integrations section](integrations.md#linux) of the documentation (this is an optional step).
Let's check the status of BunkerWeb :
```shell
systemctl status bunkerweb
```
Now let's check the status of the Scheduler :
```shell
systemctl status bunkerweb-scheduler
```
If they are already running, we can reload them :
```shell
systemctl reload bunkerweb bunkerweb-scheduler
```
Otherwise, we will need to start them :
```shell
systemctl start bunkerweb bunkerweb-scheduler
```
## Accessing the setup wizard
!!! tip "Accessing the setup wizard"
You can access the setup wizard by browsing the `https://your-ip-address/setup` URI of your server.
If you didn't run the setup wizard, you can ignore this step.
Once you're on the setup page, you can enter the **administrator username, email, and password** and click on the "Next" button.
### Configure the Reverse Proxy and HTTPS
The next step will ask you to enter the **server name** that the web UI will use. You can also choose to enable **Let's Encrypt** or use a **custom certificate**.
The last step will give you an overview of the settings you've entered. You can click on the "Setup" button to complete the setup.
<figuremarkdown>
{ align=center }
<figcaption>Setup Wizard final step</figcaption>
</figure>
## Accessing the web interface
You can now access the web interface by browsing to the domain you configured in the previous step and the URI if you changed it (default is `https://your-domain/`).
You can create a new service by navigating to the `Services` section of the web interface and clicking on the `➕ Create new service` button.
Their are multiple ways of creating a service using the web interface :
* The **Easy mode** will guide you through the process of creating a new service.
* The **Advanced mode** will allow you to configure the service with more options.
* The **Raw mode** will allow you to enter the configuration directly like editing the `variables.env` file.
!!! tip "Draft service"
You can create a draft service to save your progress and come back to it later. Just click on the `🌐 Online` button to toggle the service to draft mode.
=== "Easy mode"
In this mode, you can choose among the available templates and fill in the required fields.
<figuremarkdown>
{ align=center }
<figcaption>Web interface create service easy</figcaption>
</figure>
* To navigate between the different plugins, you can use the dropdown menu on the top left corner of the page.
* Once you've selected the template, you can fill in the required fields and follow the instructions to create the service.
* Once you're done configuring the service, you can click on the `💾 Save` button to save the configuration.
=== "Advanced mode"
In this mode, you can configure the service with more options while seeing all the available settings from all the different plugins.
<figuremarkdown>
{ align=center }
<figcaption>Web interface create service advanced</figcaption>
</figure>
* To navigate between the different plugins, you can use the dropdown menu on the top left corner of the page.
* Each setting has a small piece of information that will help you understand what it does.
* Once you're done configuring the service, you can click on the `💾 Save` button to save the configuration.
=== "Raw mode"
In this mode, you can enter the configuration directly like editing the `variables.env` file.
<figuremarkdown>
{ align=center }
<figcaption>Web interface create service RAW</figcaption>
</figure>
* Once you're done configuring the service, you can click on the `💾 Save` button to save the configuration.
🚀 Once you've saved the configuration, you should see your new service in the list of services.
If you wish to edit the service, you can click on the service name or the `📝 Edit` button.
=== "Docker"
We will assume that you followed the [Basic setup](#__tabbed_1_1) and you have the Docker integration running on your machine.
You must then have a network called `bw-services` so you can connect your existing application and configure BunkerWeb:
```yaml
services:
myapp:
image: nginxdemos/nginx-hello
networks:
- bw-services
networks:
bw-services:
external: true
name: bw-services
```
After that, you can create manually add the service in the docker compose file that you created in the previous step.
```yaml
...
services:
...
bw-scheduler:
...
environment:
...
SERVER_NAME: "www.example.com" # When using the Docker integration, you can set the configuration directly in the scheduler, make sure to set the correct domain name
MULTISITE: "yes" # Enable multisite mode so you can add multiple services
The Swarm integration is deprecated and will be removed in a future release. Please consider using the [Docker autoconf integration](#__tabbed_2_2) instead.
We will assume that you followed the [Basic setup](#__tabbed_1_3) and you have the Swarm stack running on your cluster and connected to a network called `bw-services` so you can connect your existing application and configure BunkerWeb with labels :