Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

README

Archivo docker-compose.yml para crear una base de datos MySQL en un contenedor Docker junto con archivo .env (database.env) para guardar las variables de entorno y documentación oficial

database.env

MYSQL_ROOT_PASSWORD=rootpassword
MYSQL_DATABASE=database
MYSQL_USER=user
MYSQL_PASSWORD=userpassword
version: '3.7'
services:
mysql:
image: mysql
env_file:
- database.env
volumes:
- ./docker/database/mysql/:/var/lib/mysql
ports:
- "3306:3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.