Skip to content

Instantly share code, notes, and snippets.

@diegomengarda
Created August 16, 2017 02:53
Show Gist options
  • Save diegomengarda/fcb66950f72f88b1d4ea2575d78714b6 to your computer and use it in GitHub Desktop.
Save diegomengarda/fcb66950f72f88b1d4ea2575d78714b6 to your computer and use it in GitHub Desktop.
Docker File
version: '2'
services:
mysql:
image: ambientum/mysql:5.7
container_name: teste-mysql
volumes:
- ./data:/var/lib/mysql
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=teste
- MYSQL_USER=teste
- MYSQL_PASSWORD=teste
restart: unless-stopped
app:
image: ambientum/php:7.0-nginx
container_name: teste-app
volumes:
- ./root/laravel:/var/www/app
- ./nginx/vhost:/etc/nginx/sites-avaliable/default
ports:
- "9090:8080"
links:
- mysql
restart: unless-stopped
stdin_open: true
tty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment