Created
April 10, 2017 05:35
-
-
Save pastleo/25c0d05270e2efa89d9ce14b6e457027 to your computer and use it in GitHub Desktop.
docker-compose.yml for php7 built-in server
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.1' | |
services: | |
server: | |
image: php:7 | |
working_dir: /var/www/html | |
ports: | |
- 8002:8002 | |
volumes: | |
- .:/var/www/html | |
command: php -S 0.0.0.0:8002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
把這個
docker-compose.yml
放到專案資料夾,然後用在專案資料夾內下docker-compose up
就可以跑起來了,然後用Ctrl+c
關掉