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 <yidhra@tuta.io>
This commit is contained in:
parent
80dff138cc
commit
0f8fd9a3e8
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal file
@ -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/
|
Loading…
x
Reference in New Issue
Block a user