Last active
September 12, 2018 15:52
-
-
Save michaelbunch/8fbef673f12b4267315be5e5a57762e0 to your computer and use it in GitHub Desktop.
Docker-compose for local Laravel development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
app: | |
image: learninghouse/nginx-phpfpm:7.1 | |
volumes: | |
- ./:/app | |
ports: | |
- "8000:80" | |
links: | |
- db | |
- redis | |
db: | |
image: mysql:5.7 | |
environment: | |
MYSQL_DATABASE: homestead | |
MYSQL_USER: homestead | |
MYSQL_PASSWORD: secret | |
MYSQL_ROOT_PASSWORD: secret | |
ports: | |
- "3306" | |
redis: | |
image: redis:4.0-alpine | |
ports: | |
- "6379" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment