Last active
February 12, 2018 13:31
-
-
Save andrewmclagan/ead29b68377175e7d620 to your computer and use it in GitHub Desktop.
Horizontal Laravel with Docker Compose
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
load_balancer: | |
image: tutum/haproxy | |
links: | |
- web | |
ports: | |
- "80:80" | |
cache: | |
image: redis | |
database: | |
image: mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=SuperSecretPassword123 | |
- MYSQL_DATABASE=laravel | |
web: | |
image: andrewmclagan/nginx-hhvm | |
links: | |
- database | |
- cache | |
volumes: | |
- ./:/var/www | |
environment: | |
- APP_ENV=production | |
- DB_DATABASE=laravel | |
- DB_PASSWORD=SuperSecretPassword123 | |
- VIRTUAL_HOST=laravel.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment