Skip to content

Instantly share code, notes, and snippets.

@michaelbunch
Last active September 12, 2018 15:52
Show Gist options
  • Save michaelbunch/8fbef673f12b4267315be5e5a57762e0 to your computer and use it in GitHub Desktop.
Save michaelbunch/8fbef673f12b4267315be5e5a57762e0 to your computer and use it in GitHub Desktop.
Docker-compose for local Laravel development
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