services:
  service:
    container_name: service
    build:
      context: ./service_service
      dockerfile: Dockerfile
    expose:
      - 5000

  tariff:
    container_name: tariff
    build:
      context: ./tariff_service
      dockerfile: Dockerfile
    expose:
      - 5001

  nginx:
    image: nginx:latest
    ports:
      - "80:80"
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf
    depends_on:
      - service
      - tariff