mirror of
https://github.com/ArthurDanjou/ArtStudies.git
synced 2026-01-24 12:52:36 +01:00
Add MySQL setup and initial data scripts
- Created a Docker Compose file to set up a MySQL container named M2_SQL_COURSE with an empty password and a database named TP. - Added a Makefile with a target to execute a SQL script (TP1.sql) inside the MySQL container and log the output. - Implemented the TP1.sql script to create tables for Magasin and Localite, insert initial data, and perform several queries.
This commit is contained in:
13
M2/SQL/docker-compose.yml
Normal file
13
M2/SQL/docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
mysql:
|
||||
container_name: M2_SQL_COURSE
|
||||
image: mysql:latest
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
|
||||
MYSQL_DATABASE: TP
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
Reference in New Issue
Block a user