Skip to content

Instantly share code, notes, and snippets.

@settachok
Created May 21, 2018 09:09
Show Gist options
  • Save settachok/467be0531deda36044362ec0b2f28297 to your computer and use it in GitHub Desktop.
Save settachok/467be0531deda36044362ec0b2f28297 to your computer and use it in GitHub Desktop.
Docker compose for Laravel development
version: '3.3'
services:
nginx:
image: settachok/nginx-laravel
volumes:
- ./:/var/www/html
ports:
- "80"
app:
image: php:fpm
volumes:
- ./:/var/www/html
node:
image: node
working_dir: /var/www/html
volumes:
- ./:/var/www/html
db:
image: mariadb
volumes:
- db_data:/var/lib/mysql
environment:
- "MYSQL_DATABASE=homestead"
- "MYSQL_USER=homestead"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
ports:
- "3306"
volumes:
db_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment