From 0f8fd9a3e8ea229cd4ee9b5a3f69bd1d2bb9009b Mon Sep 17 00:00:00 2001 From: Mathis Date: Mon, 29 Apr 2024 09:39:15 +0200 Subject: [PATCH] feat: Add Docker compose file for database setup Add a `docker-compose.yml` file to ease local development. The file specifies configuration for a MariaDB container that will now serve as our database server. Environment variables and ports are also configured in the file. Signed-off-by: Mathis --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a6d347a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.3' +services: + + #serveur de base de donnees + database: + image: 'mariadb:10.3' + container_name: database + restart: always + environment: + MYSQL_USER: 'user_brief05' + MYSQL_PASSWORD: '1234567890' + MYSQL_DATABASE: 'brief_05' + MYSQL_ROOT_PASSWORD: '0987654321' + + ports: + - '3434:3306' + volumes: + - ${PWD}/mariadb/:/var/lib/mysql/ \ No newline at end of file