# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

services:
  opea-nginx-server:
    image: opea/nginx:latest
    container_name: opea-nginx-server
    ports:
      - "${NGINX_PORT:-80}:80"
    environment:
      - no_proxy=${no_proxy}
      - https_proxy=${https_proxy}
      - http_proxy=${http_proxy}
      - FRONTEND_SERVICE_IP=${FRONTEND_SERVICE_IP}
      - FRONTEND_SERVICE_PORT=${FRONTEND_SERVICE_PORT}
      - BACKEND_SERVICE_NAME=${BACKEND_SERVICE_NAME}
      - BACKEND_SERVICE_IP=${BACKEND_SERVICE_IP}
      - BACKEND_SERVICE_PORT=${BACKEND_SERVICE_PORT}
      - DATAPREP_SERVICE_IP=${DATAPREP_SERVICE_IP}
      - DATAPREP_SERVICE_PORT=${DATAPREP_SERVICE_PORT}
    ipc: host
    restart: always

networks:
  default:
    driver: bridge
