Created
December 12, 2016 20:16
-
-
Save talbergs/7386b197958e19a597af02eea1833f5e to your computer and use it in GitHub Desktop.
Docker[ Caddy php7 ]
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
0.0.0.0:80 | |
fastcgi / phpfmp:9000 php |
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
version: '2' | |
services: | |
caddy: | |
image: abiosoft/caddy | |
ports: | |
- 80:80 | |
- 443:443 | |
links: | |
- phpfmp | |
volumes: | |
- .:/srv | |
- ./Caddyfile:/etc/Caddyfile | |
phpfmp: | |
image: php:7.1.0-fpm-alpine | |
volumes: | |
- .:/srv |
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
<?php | |
phpinfo(); |
Hello Martan,
thanks for your post. How should this being done with multiple websites? Since they're using the same volume.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose up