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>
18 lines
385 B
YAML
18 lines
385 B
YAML
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/ |