Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
compose nginx and php via http
version: '3'
services:
nginx:
build: ./nginx
ports:
- 80:80
depends_on:
- php
volumes:
# - socket:/var/run/php
- ./html:/var/www/html
links:
- php
php:
build: ./php
ports:
- 9000:9000
volumes:
# - socket:/var/run/php
- ./html:/var/www/html
# volumes:
# socket:
# external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.