Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker Compose
version: '2'

services:
  # Source
  source:
    image: tianon/true
    container_name: nomdedoseuappaqui-source
    volumes:
      - ./:/var/www

  # PHP 7 + Nginx
  app:
    image: webdevops/php-nginx:ubuntu-16.04
    container_name: nomdedoseuappaqui-app
    volumes_from:
      - source
    ports:
      - 8080:80
    environment:
      WEB_DOCUMENT_ROOT: /var/www
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.