Browse Source

Created docker script to run mysql db for local development.

dockerScript
jrtechs 5 years ago
parent
commit
95ab5dad53
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      docker-compose.yml

+ 16
- 0
docker-compose.yml View File

@ -0,0 +1,16 @@
version: '3'
# mysql --port=3306 --host=127.0.0.1 -u root --password=password
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "3306:3306"
volumes:
- "./db:/var/lib/mysql"

Loading…
Cancel
Save