services:
  app:
    build:
      context: ./docker/php
    container_name: php83-sqlsrv
    volumes:
      - ./:/var/www
    networks:
      - appnet

  web:
    image: nginx:1.25
    container_name: nginx-server
    ports:
      - "5174:80"
    volumes:
      - ./:/var/www
      - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - app
    networks:
      - appnet

networks:
  appnet:
    driver: bridge