diff --git a/docker/docker-nas.yml b/docker/docker-nas.yml new file mode 100644 index 00000000..f5484d8a --- /dev/null +++ b/docker/docker-nas.yml @@ -0,0 +1,93 @@ +services: + # 1. PHP Laravel App (Nutzt jetzt das lokale Dockerfile aus dem letzten Schritt) + laravel-app: + build: /volume2/laravel-stack/ + container_name: laravel-app + restart: unless-stopped + volumes: + - /volume2/laravel-stack/app:/var/www/html + networks: + - laravel-network + + # 2. Der Laravel-Scheduler + laravel-scheduler: + build: /volume2/laravel-stack/ + container_name: laravel-scheduler + restart: unless-stopped + volumes: + - /volume2/laravel-stack/app:/var/www/html + command: php /var/www/html/artisan schedule:work + depends_on: + - laravel-app + networks: + - laravel-network + + # 3. Caddy Webserver + caddy: + image: caddy:2-alpine + container_name: caddy-server + restart: unless-stopped + ports: + - "8080:80" + - "8443:443" + volumes: + - /volume2/laravel-stack/caddy/Caddyfile:/etc/caddy/Caddyfile + - caddy_data:/data # Verwaltet durch Docker (Sicher vor Rechteregeln) + - /volume2/laravel-stack/app:/var/www/html + depends_on: + - laravel-app + networks: + - laravel-network + + # 4. MariaDB Datenbank (Port 3306 offen für Ihren Import!) + mariadb: + image: mariadb:11-noble + container_name: mariadb-db + restart: unless-stopped + ports: + - "3306:3306" + environment: + MYSQL_ROOT_PASSWORD: salam + MYSQL_DATABASE: nuhodds_fi4 + MYSQL_USER: root + MYSQL_PASSWORD: salam + volumes: + - mariadb_data:/var/lib/mysql # Verwaltet durch Docker (Sicher vor Rechteregeln) + networks: + - laravel-network + + # 5. MongoDB Datenbank + mongodb: + image: mongo:latest + container_name: mongodb-db + restart: unless-stopped + user: "0:0" + ports: + - "27017:27017" + volumes: + - mongo_nopass_data:/data/db # Verwaltet durch Docker (Sicher vor Rechteregeln) + networks: + - laravel-network + + flaresolverr: + image: ghcr.io/flaresolverr/flaresolverr:latest + container_name: flaresolverr + restart: unless-stopped + ports: + - "8191:8191" + environment: + - LOG_LEVEL=info + - TZ=Europe/Berlin + - LANG=en-US + networks: + - laravel-network + +networks: + laravel-network: + driver: bridge + +# Hier weisen wir Docker an, die Ordner im geschützten Docker-Speicher zu erstellen +volumes: + mariadb_data: + mongo_nopass_data: + caddy_data: diff --git a/package-lock.json b/package-lock.json index 895c5ae4..d2398269 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "nuhodds_fi4", + "name": "app", "lockfileVersion": 3, "requires": true, "packages": { @@ -527,9 +527,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -643,9 +640,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -660,9 +654,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -677,9 +668,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -694,9 +682,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -711,9 +696,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -728,9 +710,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -745,9 +724,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -762,9 +738,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -779,9 +752,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -796,9 +766,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -813,9 +780,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -830,9 +794,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -847,9 +808,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1073,9 +1031,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1093,9 +1048,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1113,9 +1065,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1133,9 +1082,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1991,9 +1937,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2015,9 +1958,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2039,9 +1979,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2063,9 +2000,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [