Created
October 5, 2018 14:55
-
-
Save gabrielfroes/64193efbaf6dd2728e3a6dd4a1845941 to your computer and use it in GitHub Desktop.
Docker + VS Code #CDFTV #MaoNoCodigo3
This file contains 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: | |
wordpress_db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: myrootpass | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
wordpress: | |
depends_on: | |
- wordpress_db | |
image: wordpress:latest | |
ports: | |
- "80:80" | |
- "443:443" | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: wordpress_db:3306 | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
phpmyadmin: | |
depends_on: | |
- wordpress_db | |
image: phpmyadmin/phpmyadmin | |
restart: always | |
ports: | |
- 88:80 | |
environment: | |
PMA_HOST: wordpress_db:3306 | |
MYSQL_ROOT_PASSWORD: myrootpass | |
volumes: | |
db_data: |
This file contains 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
php: | |
build: . | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./www/:/var/www/html | |
links: | |
- db | |
db: | |
image: mysql:5.7 | |
volumes: | |
- /var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=myrootpass | |
- MYSQL_DATABASE=mydatabase |
This file contains 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
FROM php:7.2-apache | |
RUN docker-php-ext-install mysqli | |
RUN a2enmod rewrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parabéns, o canal de vocês é realmente muito bom.. excelente trabalho que vocês realizam. Consigo apreender de maneira bem fácil e prático, sem enrolação. Uma pergunta... quando estará no ar a loja de vocês?? Obrigado.