Skip to content

Instantly share code, notes, and snippets.

@abrahaobittar
Created April 16, 2021 20:36
Show Gist options
  • Save abrahaobittar/d06ee25481d9effe927ddbb838b694b9 to your computer and use it in GitHub Desktop.
Save abrahaobittar/d06ee25481d9effe927ddbb838b694b9 to your computer and use it in GitHub Desktop.
version: "3"
services:
phpdebug:
build:
context: .
dockerfile: ./Dockerfile
image: phpxdebug
container_name: php8
restart: always
ports:
- "80:80"
volumes:
- ".:/var/www/html:Z"
@abrahaobittar
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment