Last active
January 12, 2020 15:12
-
-
Save erandirjunior/18548ede2a8cbe586e506154586ad491 to your computer and use it in GitHub Desktop.
Arquivo de configuração do docker
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.5' | |
services: | |
site: | |
image: webdevops/php-apache:7.4 | |
volumes: | |
- .:/var/www/html | |
environment: | |
- WEB_DOCUMENT_ROOT=/var/www/html | |
ports: | |
- 8080:80 | |
depends_on: | |
- db | |
composer: | |
container_name: composer_oo | |
image: composer | |
volumes: | |
- ./:/app | |
command: composer update |
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.5' | |
services: | |
site: | |
image: webdevops/php-apache:7.4 | |
volumes: | |
- .:/var/www/html | |
environment: | |
- WEB_DOCUMENT_ROOT=/var/www/html/public | |
ports: | |
- 8080:80 | |
depends_on: | |
- db | |
composer: | |
container_name: composer_oo | |
image: composer | |
volumes: | |
- ./:/app | |
command: composer update | |
db: | |
image: mysql:5.7 | |
ports: | |
- "3306:3306" | |
volumes: | |
- dba:/var/lib/mysql | |
environment: | |
- MYSQL_DATABASE=test | |
- MYSQL_ROOT_PASSWORD=root | |
volumes: | |
dba: |
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.5' | |
services: | |
site: | |
image: webdevops/php-apache:7.4 | |
volumes: | |
- .:/var/www/html | |
environment: | |
- WEB_DOCUMENT_ROOT=/var/www/html/ | |
ports: | |
- 8080:80 | |
composer: | |
container_name: composer_oo | |
image: composer | |
volumes: | |
- ./:/app | |
command: composer update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment