Convert step-by-step sections to the steps component

This commit is contained in:
Djeex
2026-09-02 18:16:20 +02:00
parent 11c5432955
commit b864251f48
5 changed files with 186 additions and 93 deletions
+29 -12
View File
@@ -20,7 +20,8 @@ Docker, to install deployable services in seconds and manage them with just a fe
![picture](/img/serveex/docker.svg)
## Install Docker
Add the Docker repositories and GPG key:
::steps{level="3"}
### Add the Docker repository and GPG key
```bash [Terminal]
# Add Docker's official GPG key:
@@ -35,22 +36,23 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docke
sudo apt-get update
```
Install the packages:
### Install the packages
```bash [Terminal]
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```
That's it!
### Done !
::
**More options:** [Install Docker for Debian 13](https://docs.docker.com/engine/install/debian/)
::note
From here on, we assume the stacks are installed in the `/docker` folder, created using the command:
```bash [Terminal]
sudo mkdir /docker
```
```bash [Terminal]
sudo mkdir /docker
```
::
## Install [Dockge](https://github.com/louislam/dockge) to manage and deploy containers
@@ -69,14 +71,15 @@ root
└── compose.yml
```
Create the stack folder:
::steps{level="4"}
#### Create the stack folder
```bash [Terminal]
cd /docker
sudo mkdir dockge
```
Then create the `compose.yml` file in this folder using `nano`:
#### Create the compose file
```bash [Terminal]
cd /docker/dockge
@@ -107,7 +110,7 @@ services:
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
To launch the container:
#### Launch the container
```bash [Terminal]
cd /docker/dockge
@@ -118,6 +121,9 @@ Then go to `http://yourserverip:3555` in your browser to access the login page.
More info on [Dockge and how to use it](https://github.com/louislam/dockge)
#### Done !
::
And there you go! Docker and a tool to easily manage your containers are ready!
## [Watchtower](https://watchtower.nickfedor.com/), to auto-update containers
@@ -125,6 +131,9 @@ Watchtower is a container that checks for updates and pulls new images automatic
### Configuration
::steps{level="4"}
#### Create the stack
- Open Dockge in your browser
- Click `compose`
- Name the stack `watchtower`
@@ -156,7 +165,9 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
```
Then fill in the `.env` section in Dockge with the following:
#### Set your environment variables
Fill in the `.env` section in Dockge with the following:
```properties [.env]
SCHEDULE=
@@ -168,12 +179,18 @@ WH_URL=
| `SCHEDULE` | Cron format | `0 0 6 * * *` (every day at 6 AM) |
| `WH_URL` | Your Discord webhook URL - append `/slack` at the end | `https://yourdiscordserver/webhook/slack` |
#### Enable Watchtower on other containers
To have Watchtower monitor your other containers, add this to their `compose.yml`:
```yaml [compose.yaml]
labels:
- com.centurylinklabs.watchtower.enable=true
```
Then restart the modified stacks. And that's it! You now have a solid base to start deploying the services you want!
Then restart the modified stacks.
#### Done !
::
And that's it! You now have a solid base to start deploying the services you want!