From 42052549254b3a8fade5187c41848e07903fdafa Mon Sep 17 00:00:00 2001 From: dominikhoebert <42839893+dominikhoebert@users.noreply.github.com> Date: Fri, 29 May 2026 14:52:00 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20Konfigurationsdateien=20f=C3=BCr=20?= =?UTF-8?q?Gatus,=20Mosquitto,=20Postgres=20und=20MeshDash=20hinzu;=20aktu?= =?UTF-8?q?alisiere=20Moodle-Umgebungsvariablen=20und=20erstelle=20Webstac?= =?UTF-8?q?k-Dokumentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes .gitignore | 4 ++++ gatus/compose.yml | 21 ++++++++++++++++ gatus/config/config.yaml | 40 +++++++++++++++++++++++++++++++ mariadb/.DS_Store | Bin 0 -> 6148 bytes mariadb/compose.yml | 10 ++++---- meshdash/compose.yml | 16 +++++++++++++ moodle/.env | 12 ++++++++++ mosquitto/compose.yml | 11 +++++++++ postgres17/compose.yml | 31 ++++++++++++++++++++++++ webstack-task/TASK.md | 13 ++++++++++ webstack-task/app/index.html | 13 ++++++++++ webstack-task/app/index.php | 9 +++++++ webstack-task/compose.yml | 39 ++++++++++++++++++++++++++++++ webstack-task/nginx/default.conf | 22 +++++++++++++++++ windows/compose.yml | 30 +++++++++++++++++++++++ 16 files changed, 265 insertions(+), 6 deletions(-) create mode 100644 .DS_Store create mode 100644 gatus/compose.yml create mode 100644 gatus/config/config.yaml create mode 100644 mariadb/.DS_Store create mode 100644 meshdash/compose.yml create mode 100644 moodle/.env create mode 100644 mosquitto/compose.yml create mode 100644 postgres17/compose.yml create mode 100644 webstack-task/TASK.md create mode 100644 webstack-task/app/index.html create mode 100644 webstack-task/app/index.php create mode 100644 webstack-task/compose.yml create mode 100644 webstack-task/nginx/default.conf create mode 100644 windows/compose.yml diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0ffcf3a19caba71c80a2a4b4b9e35533d431b2b7 GIT binary patch literal 6148 zcmeHKJ8HvF5S&e17}7Xh%6EYjxq&dw34DPR3C55};CvvRs+`M5^X!L!kOOJbgjtxK z_g1^_p((Ul0JeUAyaQGMmV`6D+|A9OJ7#uK5hD{k;|VXgB?k1f?DGMyy~Zm(iML7p zp8Ej@?0MGiV|(bIhklngoj*!ZDIf);fE17dQs5T~c<-exuaf1ZfE17d-wOEmp%Knq z@t7Q+4!Rft$P0$UxQExample Domain*)" # Body must contain the specified header + alerts: + - type: telegram + + - name: Guacamole + group: Local + url: "http://host.docker.internal:80" + conditions: + - "[STATUS] == 200" + alerts: + - type: telegram + diff --git a/mariadb/.DS_Store b/mariadb/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..4c5c7e8143ee70cd76737694bc353006c403ffbf GIT binary patch literal 6148 zcmeHKK~BR!4D^;t1m!@F9QOm2=ns}E@PR%6ng$h#h7_rlIOf8I4 zNQ1-$0kS3UY`pfaGh4+q5xMcY7!eJKD1kEejxg*IUT1AdPc6LY;vOryrXdwHrB%z@ z48M^9zPl7RmeV}m+V=jYi}`3WtIDOMJ$&l+EUPTb7gY|AX7{i2>AX zmLwIl(HJlWjDZaU{C)6H#-LaW#!m-^*a86iFh{|hdkK#5ib1g!#0tboC{RM3wir&r zVfX466l*~VC#TJa)03TcC@!9k{e5&N7X)oI28@9w0|)Xr;QD{w-Tya(?8z7~2L2TT zuAfb^F)_Uj_l!g6j!A%Gzu@u9XOYsRb3hbUIz@S(Q!UC~B0+9wAjDa6z F-~%(8Qi}ip literal 0 HcmV?d00001 diff --git a/mariadb/compose.yml b/mariadb/compose.yml index 5721520..1b5e58d 100644 --- a/mariadb/compose.yml +++ b/mariadb/compose.yml @@ -9,11 +9,9 @@ services: container_name: mariadb restart: always ports: - - 3306:3306 + - 127.0.0.1:3306:3306 environment: - MARIADB_ROOT_PASSWORD: example - MARIADB_USER: example-user - MARIADB_PASSWORD: my_cool_secret + MARIADB_ROOT_PASSWORD: administrator volumes: - ./mysql:/var/lib/mysql @@ -60,14 +58,14 @@ services: LABEL_con1: MariaDB SERVER_con1: mariadb USER_con1: root - PASSWORD_con1: example + PASSWORD_con1: administrator PORT_con1: 3306 ENGINE_con1: mysql@dbgate-plugin-mysql nocodb: container_name: nocodb # environment: - # NC_DB: "mysql://mariadb:3306?u=root&p=example" + # NC_DB: "mysql://mariadb:3306?u=root&p=administrator" image: "nocodb/nocodb:latest" ports: - "8070:8080" diff --git a/meshdash/compose.yml b/meshdash/compose.yml new file mode 100644 index 0000000..50a2414 --- /dev/null +++ b/meshdash/compose.yml @@ -0,0 +1,16 @@ +services: + meshdash: + image: rusjpmd/meshdash-runner:latest + container_name: meshdash + restart: always + network_mode: host + privileged: true + environment: + MD_SETUP_KEY: "YOUR_API_KEY_HERE" + MD_SETUP_URL: "https://meshdash.co.uk/user_setup_core.php" + volumes: + - /dev:/dev + - meshdash_data:/app/data + +volumes: + meshdash_data: diff --git a/moodle/.env b/moodle/.env new file mode 100644 index 0000000..cfb2ae4 --- /dev/null +++ b/moodle/.env @@ -0,0 +1,12 @@ +# Moodle application admin credentials +MOODLE_USERNAME=admin +MOODLE_PASSWORD=change_me_admin_password +MOODLE_EMAIL=admin@example.com + +# Database connection details +MOODLE_DATABASE_USER=moodle +MOODLE_DATABASE_PASSWORD=change_me_database_password +MOODLE_DATABASE_NAME=moodle + +# MariaDB root credentials +MARIADB_ROOT_PASSWORD=change_me_root_password diff --git a/mosquitto/compose.yml b/mosquitto/compose.yml new file mode 100644 index 0000000..21d10f7 --- /dev/null +++ b/mosquitto/compose.yml @@ -0,0 +1,11 @@ +services: + mosquitto: + image: eclipse-mosquitto:2 + container_name: mosquitto + restart: unless-stopped + ports: + - "1883:1883" + volumes: + - ./config/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro + - ./data:/mosquitto/data + - ./log:/mosquitto/log diff --git a/postgres17/compose.yml b/postgres17/compose.yml new file mode 100644 index 0000000..173cc89 --- /dev/null +++ b/postgres17/compose.yml @@ -0,0 +1,31 @@ +name: postgres + +services: + postgres: + container_name: postgres + image: postgres:17.6 + restart: unless-stopped + ports: + - 5432:5432 + environment: + POSTGRES_PASSWORD: postgres + POSTGRES_USER: postgres + volumes: + - ./postgres:/var/lib/postgresql/data + + pgadmin: + container_name: pgadmin + image: dpage/pgadmin4:2025-09-02-1 + environment: + PGADMIN_DEFAULT_EMAIL: admin@pgadmin.com + PGADMIN_DEFAULT_PASSWORD: password + PGADMIN_LISTEN_PORT: 80 + ports: + - 15433:80 + volumes: + - pgadmin:/var/lib/pgadmin + depends_on: + - postgres + +volumes: + pgadmin: diff --git a/webstack-task/TASK.md b/webstack-task/TASK.md new file mode 100644 index 0000000..60412fa --- /dev/null +++ b/webstack-task/TASK.md @@ -0,0 +1,13 @@ +Es soll ein Webstack lokal mit Docker aufgesetzt werden. + +1. [nginx](https://hub.docker.com/_/nginx) +2. [PHP](https://hub.docker.com/_/php) +3. [sftp](https://hub.docker.com/r/atmoz/sftp) + +sftp um die Dateien zu übertragen und verwalten. nginx und PHP als Webserver. +Hoste eine einfache Testanwendung auf dem Server. +Verwende Docker Compose. + +Die Lehrperson soll mit deiner IP-Adresse darauf zugreifen können. + +Dokumentiere die Schritte hier kurz, und lade sie hoch. diff --git a/webstack-task/app/index.html b/webstack-task/app/index.html new file mode 100644 index 0000000..6cbc977 --- /dev/null +++ b/webstack-task/app/index.html @@ -0,0 +1,13 @@ + + + + + + Webstack Task + + +

Webstack Task

+

Wenn du das siehst, liefert Nginx aus.

+

PHP-Test öffnen

+ + diff --git a/webstack-task/app/index.php b/webstack-task/app/index.php new file mode 100644 index 0000000..5ccab94 --- /dev/null +++ b/webstack-task/app/index.php @@ -0,0 +1,9 @@ +