Skip to content

Instantly share code, notes, and snippets.

@hyperized
Created May 15, 2019 14:13
Show Gist options
  • Save hyperized/1e29e028e407a4e1ec490f9927bfb4d3 to your computer and use it in GitHub Desktop.
Save hyperized/1e29e028e407a4e1ec490f9927bfb4d3 to your computer and use it in GitHub Desktop.
---
version: '3.7'
services:
redis:
image: redis
ports:
- 6379:6379
mysql:
image: mysql:5.7
ports:
- 3306:3306
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=development
- MYSQL_USER=developer
- MYSQL_PASSWORD=development
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
- PMA_HOST=mysql
fpm:
build:
context: ./
dockerfile: docker/fpm/Dockerfile
environment:
- DB_HOST=mysql
- CACHE_DRIVER=redis
ports:
- 9000:9000
volumes:
- ./:/site
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./:/site
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment