added custom dockerfile for node

This commit is contained in:
Clément
2025-05-20 14:18:58 +02:00
committed by PRIBYLSKI
parent cd8f51526c
commit 8ca3d05486
2 changed files with 31 additions and 22 deletions

View File

@@ -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:
laravel_db_volume:

View File

@@ -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