Comments (1)
expose port 3306 to your system, then you'll be able to connect to mysql.
Edit your docker-compos.yml, then use 127.0.0.1 as the IP address, if it doesn't work, use docker's own IP.
mysql:
image: mysql:5.7
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- ~/volumes/mysql:/var/lib/mysql
Here is a fork that can help you setup also your folder mappings:
from homestead-docker.
Related Issues (20)
- Is is possible to change the PHP version? HOT 1
- 413 Request Entity Too Large HOT 2
- How to connect MySQL WorkBench HOT 9
- Slow Mysql HOT 1
- SOAP missing HOT 1
- MongoDB HOT 1
- cant run serve.sh: permission denied HOT 2
- phpmyadmin HOT 2
- PHP 7.2 like in latest Homestead? HOT 1
- HTTPS for homestead HOT 1
- How to connect on mysql? HOT 2
- Upgrade PHP 7.2 HOT 2
- Nginx Sites-enabled problem HOT 2
- How to add Xdebug?
- homestead:php7.1 is running php 7.3.3 HOT 3
- Can`t connect to server : the connection was reset HOT 1
- Ubuntu 18.04 is there a plan to update? HOT 1
- Hello! HOT 3
- How to connect to database? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homestead-docker.