Created
April 16, 2021 20:36
-
-
Save abrahaobittar/d06ee25481d9effe927ddbb838b694b9 to your computer and use it in GitHub Desktop.
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" | |
services: | |
phpdebug: | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
image: phpxdebug | |
container_name: php8 | |
restart: always | |
ports: | |
- "80:80" | |
volumes: | |
- ".:/var/www/html:Z" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obs: Jogar o Dockerfile e docker-compose.yml para o raiz onde será o /var/www/html
exemplo:
Jogar os dois arquivos em ~/home/$USER/Code (Code pode ser qualquer pasta que contenha mais projetos:
~/Code
├─ Dockerfile
└─ docker-compose.yml
├─ php_projects
├─ projeto1
└─ projeto2
└─ projetoN