Skip to content

Instantly share code, notes, and snippets.

@talbergs
Created December 12, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save talbergs/7386b197958e19a597af02eea1833f5e to your computer and use it in GitHub Desktop.
Save talbergs/7386b197958e19a597af02eea1833f5e to your computer and use it in GitHub Desktop.
Docker[ Caddy php7 ]
0.0.0.0:80
fastcgi / phpfmp:9000 php
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
<?php
phpinfo();
@talbergs
Copy link
Author

docker-compose up

@renegoretzka
Copy link

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