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
| # v3 syntax | |
| version: '3' | |
| services: | |
| # PHP (with NGNIX) | |
| leroy-api: | |
| image: ambientum/php-alpine:7.1-nginx | |
| container_name: leroy-api | |
| volumes: | |
| - .:/var/www/app |
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
| #!/bin/bash | |
| # Install the latest version Docker | |
| sudo curl -fsSL https://get.docker.com/ | sh | |
| # Check if docker is started | |
| sudo docker --version | |
| # Check if docker is started | |
| sudo /etc/init.d/docker status | |
| # If console returns docker stop/waitind | |
| sudo /etc/init.d/docker start | |
| # Add your user to the docker group |
NewerOlder