Created
August 16, 2017 02:53
-
-
Save diegomengarda/fcb66950f72f88b1d4ea2575d78714b6 to your computer and use it in GitHub Desktop.
Docker File
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: '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