Article image
Fernando Paiva
Fernando Paiva10/09/2023 03:29
Compartilhe

Docker to studing in the corse use database MySql

  • #Docker

For the students wants use docker with database instead SQLite, i publish docker-compose.yml to run docker in you machine, more informations about docker, official website

MySql database to teste

#https://www.docker.com/

#create docker-compose.yml

#to run: docker-compose up -d

version: '3.7'

services:

mysql:

container_name: mysqldocker

image: mysql:latest

ports:

- 3306:3306

environment:

MYSQL_ROOT_PASSWORD: 123456

MYSQL_DATABASE: mysqldocker

MYSQL_USER: admin

MYSQL_PASSWORD: 123456

security_opt:

- seccomp:unconfined

networks:

- mysql_network_docker

volumes:

- ./mysql-data:/var/lib/mysql

networks:

mysql_network_docker:

Compartilhe
Comentários (1)
Everton Martins
Everton Martins - 10/09/2023 03:39

Congratulations!