création du projet laravel et création de la base de donnée

This commit is contained in:
Luka COUTANT
2025-06-10 14:06:48 +02:00
parent bdcb23b753
commit e9e9bc2ae6
67 changed files with 13748 additions and 0 deletions

30
docker-compose.yaml Normal file
View File

@@ -0,0 +1,30 @@
services:
mariadb:
build:
context: images
dockerfile: SQL_Dockerfile
environment:
MARIADB_ROOT_PASSWORD: super_strong_password_of_root
MARIADB_DATABASE: taskdb
ports:
- "3306:3306" # Attention: faille de sécurité !
volumes:
- laravel_db_volume:/var/lib/mysql
laravel:
build:
context: images
dockerfile: Laravel_Dockerfile
ports:
- "8080:8000"
environment:
LARAVEL_DATABASE_TYPE: mariadb
LARAVEL_DATABASE_USER: developtask
LARAVEL_DATABASE_PASSWORD: super_strong_password
LARAVEL_DATABASE_NAME: taskdb
LARAVEL_DATABSE_HOST: mariadb
volumes:
- ./laravel:/app
volumes:
laravel_db_volume: