version: '3'
services:
  nginx:
    image: nginx:latest
    ports:
      - "8081:80"

    volumes:
      - ../:/code/
      - ./configs/nginx.conf:/etc/nginx/conf.d/default.conf

    links:
      - php

  php:
    image: chialab/php:8.0-fpm
    volumes:
      - ../:/code/
