Created
May 21, 2018 09:09
-
-
Save settachok/467be0531deda36044362ec0b2f28297 to your computer and use it in GitHub Desktop.
Docker compose for Laravel development
This file contains hidden or 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
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