# Step 1.2.- How to install Soffid Break glass tool?

## Intallation

### Execute the Store YAML

```YAML
version: '2'

services:
  breakglass:
    image: eu.gcr.io/soffid-cloud/breakglass:1.0.3
    environment:
      JAVA_KEYSTORE: /opt/soffid/tomee/certificados/breakglass.jks 
      KEYSTORE_PASS: <YOUR_KEYSTORE_PASS> 
      mail_from: pat.lab@sysadm.soffid.com 
      mail_host: <YOUR_MAIL_HOST>
      mail_password: <YOUT_MAIL_PASS>
      mail_port: 465 
      mail_transport_protocol: smtps 
      mail_user: pat 
      mail_auth: true 
    ports: 
      - "8445:8080"
    networks:
      - network
    volumes:
      - breakglass-certificados:/opt/soffid/tomee/certificados
      - breakglass-data:/opt/soffid/tomee/breakglass

networks:
  network:
    name: netcompose
    driver: bridge

volumes:
  breakglass-certificados:
    name: breakglass-certificados-laboratorio
  breakglass-data:
    name: breakglass-data-laboratorio
 
```

##### Ubuntu commands

<div class="pointer-container" id="bkmrk-%C2%A0-1"><div class="pointer anim is-page-editable"><svg class="svg-icon" data-icon="link" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg><div class="input-group inline block"> <button class="button outline icon" data-clipboard-target="#pointer-url" title="Copy Link" type="button"><svg class="svg-icon" data-icon="copy" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg></button></div><svg class="svg-icon" data-icon="edit" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg></div></div><span style="color: #a6d100; font-weight: bold; font-size: 18px;">1.</span> Bear in mind, that the name of the YAML file must be **docker-compose.yaml** And you must execute the docker compose action inside the folder where this file is located.

```
cd /.../.../soffid
```

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">2.</span> Apply the YAML:

```shell
sudo docker compose up -d
```

[![image-1721888468090.png](https://bookstack.soffid.com/uploads/images/gallery/2024-07/scaled-1680-/image-1721888468090.png)](https://bookstack.soffid.com/uploads/images/gallery/2024-07/image-1721888468090.png)

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">3.</span> Check containers

```shell
sudo docker compose ps
```

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">4.</span> View the breakglass log

```shell
sudo docker compose logs -f <BREAKGLASS_CONTAINER>
```

## Upgrade

You can update the version in the yaml file and execute the command:

```shell
sudo docker compose up -d
```