version: '3.8'

services:
  web:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8080:80"
    volumes:
      - ./src/php:/var/www/html
      - ./src/js:/var/www/html/js
      - ./src/img:/var/www/html/img
    environment:
      - APACHE_DOCUMENT_ROOT=/var/www/html
    extra_hosts:
      - "host.docker.internal:host-gateway"
