Skip to content

Instantly share code, notes, and snippets.

@m24te28
Created February 23, 2019 07:00
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 m24te28/3935dd8aecf6a093d6f861b2dd9a2c33 to your computer and use it in GitHub Desktop.
Save m24te28/3935dd8aecf6a093d6f861b2dd9a2c33 to your computer and use it in GitHub Desktop.
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