version: "3.8"

services:
  web:
    image: nginx:alpine
    container_name: air-quality-web
    ports:
      - "8080:80"
    volumes:
      - ./site:/usr/share/nginx/html:ro
      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
    depends_on:
      - api
    restart: unless-stopped

  api:
    build: ./api
    container_name: air-quality-api
    volumes:
      - ./api/data.json:/app/data.json
    restart: unless-stopped
