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

services:
  translation:
    build:
      args:
        http_proxy: ${http_proxy}
        https_proxy: ${https_proxy}
        no_proxy: ${no_proxy}
      context: ../
      dockerfile: ./Dockerfile
    image: ${REGISTRY:-opea}/translation:${TAG:-latest}
  translation-ui:
    build:
      context: ../ui
      dockerfile: ./docker/Dockerfile
    extends: translation
    image: ${REGISTRY:-opea}/translation-ui:${TAG:-latest}
  llm-textgen:
    build:
      context: GenAIComps
      dockerfile: comps/llms/src/text-generation/Dockerfile
    extends: translation
    image: ${REGISTRY:-opea}/llm-textgen:${TAG:-latest}
  nginx:
    build:
      context: GenAIComps
      dockerfile: comps/3rd_parties/nginx/src/Dockerfile
    extends: translation
    image: ${REGISTRY:-opea}/nginx:${TAG:-latest}
