Skip to content

Instantly share code, notes, and snippets.

@hugofabricio
Created May 22, 2018 19:13
Show Gist options
  • Save hugofabricio/1933426c4b9f36c7125bb344571a884b to your computer and use it in GitHub Desktop.
Save hugofabricio/1933426c4b9f36c7125bb344571a884b to your computer and use it in GitHub Desktop.
db:
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: docker
MYSQL_DATABASE: app
data:
image: brzdigital/data
volumes:
- ./:/var/www/
- ./public/:/var/www/html/
php:
image: brzdigital/php-fpm
ports:
- 9000:9000
volumes_from:
- data
links:
- db:db
nginx:
image: brzdigital/nginx
ports:
- 80:80
volumes_from:
- data
links:
- php:fpm
artisan:
image: brzdigital/artisan
command: queue:listen
working_dir: /var/www/
links:
- db:db
volumes_from:
- data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment