Skip to content

Instantly share code, notes, and snippets.

@joestrong
Created September 20, 2015 14:29
Show Gist options
  • Save joestrong/445557f34975ba1ad1b5 to your computer and use it in GitHub Desktop.
Save joestrong/445557f34975ba1ad1b5 to your computer and use it in GitHub Desktop.
Simple Nginx & PHP-FPM setup
docker run -tid -v /home/user/webdir:/usr/share/nginx/html --name php7fpm php:7-fpm
docker run -tidp 127.0.0.1:80:80 -v /home/user/webdir:/usr/share/nginx/html -v /home/user/webdir/nginx-host.conf:/etc/nginx/conf.d/default.conf --link php7fpm --name webapp nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment