version: "3.8"

services:
  google-auth-service:
    build: ./google-auth-service
    env_file:
      - .env
    ports:
      - "4000:4000"
    networks:
      - app-network

  docs-service:
    build: ./docs-service
    env_file:
      - .env
    ports:
      - "8081:8081"
    networks:
      - app-network

  convert-pdf-csv:
    build: ./convert-pdf-csv
    env_file:
      - .env
    ports:
      - "5000:5000"
    networks:
      - app-network

  nginx:
    image: nginx:alpine
    volumes:
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
    ports:
      - "9000:80"
    depends_on:
      - google-auth-service
      - docs-service
      - convert-pdf-csv
    networks:
      - app-network

networks:
  app-network:
    driver: bridge
