Skip to content

Instantly share code, notes, and snippets.

@lukeab
Last active July 12, 2016 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeab/8715c1336c88166b407e18905b164f8a to your computer and use it in GitHub Desktop.
Save lukeab/8715c1336c88166b407e18905b164f8a to your computer and use it in GitHub Desktop.
Basic nginx phpserver docker-compose
version: '2'
services:
phpserver:
build:
context: .
dockerfile: Dockerfile-phpserver
command: php -S 0.0.0.0:9292
volumes:
- ./:/phpapp
ports:
- "9292:9292"
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
image: nginx:1.9
ports:
- "8443:443"
- "8080:80"
volumes:
- ./:/usr/share/nginx/html
- ./nginx:/etc/nginx/conf.d
- ./certs:/etc/nginx/certs
links:
- phpserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment