From fe8e54ce9b0788faac3424daac9db1d40f91e625 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 20 May 2025 14:18:58 +0200 Subject: [PATCH] added custom dockerfile for node --- docker-compose.yaml | 46 ++++++++++++++++++++------------------- images/Laravel_Dockerfile | 7 ++++++ 2 files changed, 31 insertions(+), 22 deletions(-) create mode 100644 images/Laravel_Dockerfile diff --git a/docker-compose.yaml b/docker-compose.yaml index 35201bb..a407845 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,26 +1,28 @@ services: - mariadb: - build: - context: images - dockerfile: SQL_Dockerfile - environment: - MARIADB_ROOT_PASSWORD: super_strong_password_of_root - MARIADB_DATABASE: laravel_db - ports: - - "3306:3306" - volumes: - - laravel_db_volume:/var/lib/mysql + mariadb: + build: + context: images + dockerfile: SQL_Dockerfile + environment: + MARIADB_ROOT_PASSWORD: super_strong_password_of_root + MARIADB_DATABASE: laravel_db + ports: + - "3306:3306" + volumes: + - laravel_db_volume:/var/lib/mysql - laravel: - image: bitnami/laravel - ports: - - "8080:8000" - environment: - LARAVEL_DATABASE_USER: laravel_user - LARAVEL_DATABASE_PASSWORD: super_strong_password - LARAVEL_DATABASE_NAME: laravel_db - volumes: - - ./laravel:/app + laravel: + build: + context: images + dockerfile: Laravel_Dockerfile + ports: + - "8080:8000" + environment: + LARAVEL_DATABASE_USER: laravel_user + LARAVEL_DATABASE_PASSWORD: super_strong_password + LARAVEL_DATABASE_NAME: laravel_db + volumes: + - ./laravel:/app volumes: - laravel_db_volume: \ No newline at end of file + laravel_db_volume: diff --git a/images/Laravel_Dockerfile b/images/Laravel_Dockerfile new file mode 100644 index 0000000..1b46971 --- /dev/null +++ b/images/Laravel_Dockerfile @@ -0,0 +1,7 @@ +FROM bitnami/laravel + +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash + +RUN . ~/.nvm/nvm.sh && nvm install --lts + +RUN composer require laravel/breeze --dev