Skip to content

Instantly share code, notes, and snippets.

@marcusstenbeck
Last active July 11, 2018 19:39
Show Gist options
  • Save marcusstenbeck/7ccea96e15b770addbe28712de4764ca to your computer and use it in GitHub Desktop.
Save marcusstenbeck/7ccea96e15b770addbe28712de4764ca to your computer and use it in GitHub Desktop.
Minimum Lovable Stack: PHP

Minimum Lovable Stack: PHP

(0. Install Docker: https://docs.docker.com/install/)

  1. Run docker-compose up
  2. Go to localhost:5000
  3. Edit index.php
  4. Reload localhost:5000
  5. Repeat (3)
version: '3'
services:
web:
image: php:apache
volumes:
- ./:/var/www/html
ports:
- 5000:80
<? echo "Hello PHP" ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment