Skip to content

Instantly share code, notes, and snippets.

@andrewmclagan
Last active February 12, 2018 13:31
Show Gist options
  • Save andrewmclagan/ead29b68377175e7d620 to your computer and use it in GitHub Desktop.
Save andrewmclagan/ead29b68377175e7d620 to your computer and use it in GitHub Desktop.
Horizontal Laravel with Docker Compose
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