Skip to content

Instantly share code, notes, and snippets.

@beatwade
Created January 25, 2017 15:46
Show Gist options
  • Save beatwade/a41c675f3527b3b6c5069fc4166daaf6 to your computer and use it in GitHub Desktop.
Save beatwade/a41c675f3527b3b6c5069fc4166daaf6 to your computer and use it in GitHub Desktop.
php:
image: php:7.1.1-fpm
volumes:
- ./code:/code
links:
- mysql
composer:
image: composer/composer:php7
volumes:
- ./code/blog:/app
mysql:
image: mysql:8.0.0
volumes:
- ./datadir:/var/lib/mysql
command: mysqld --innodb-buffer-pool-size=20M
environment:
- "MYSQL_DATABASE=docker_laravel"
- "MYSQL_USER=beatwade"
- "MYSQL_PASSWORD=1989530"
- "MYSQL_ROOT_PASSWORD=1989530"
ports:
- "3307:3306"
openstry:
image: openresty/openresty:trusty
ports:
- "81:80"
volumes:
- ./code:/code
- ./site.conf:/usr/local/openresty/nginx/conf/nginx.conf
links:
- php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment