services: php: container_name: php build: dockerfile: Dockerfile context: . volumes: - './www:/var/www/html' - './php-logging.conf:/usr/local/etc/php-fpm.d/zz-log.conf' nginx: container_name: nginx image: nginx:latest ports: - '80:80' links: - 'php' volumes: - './www:/var/www/html' - './nginx.conf:/etc/nginx/conf.d/nginx.conf' depends_on: - php