Skip to content

Instantly share code, notes, and snippets.

@christopherarter
Created December 28, 2021 20:33
Show Gist options
  • Save christopherarter/bb83a04be385ad2d0a97542f77957605 to your computer and use it in GitHub Desktop.
Save christopherarter/bb83a04be385ad2d0a97542f77957605 to your computer and use it in GitHub Desktop.
Simple database for Laravel using Docker Compose
version: '3.8'
services:
db:
image: mariadb:10.7
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=laravel
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./db_data:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment