<#21509 How to integrate the docker-compose.dev.ym...
# github-notifications
c
#21509 How to integrate the docker-compose.dev.yml file into a monorepo New discussion created by softshipper We have set up a monorepo using PANTSBUILD. The code can be found here. In the src/python folder, you will see two projects. I would like to start these services using Docker Compose. For this purpose, I have created the following Docker Compose file with the content below:
Copy code
services:
  datalake_svc_dev:
    image: python:3.12.2-slim
    env_file:
      - .env.dev
    volumes:
      - .:/app
    ports:
      - "10000:10000"
    working_dir: /app
    entrypoint:
      ["/bin/sh", "-c", "apt-get update && apt-get clean && pip install -r requirements.txt && alembic upgrade head && python main.py"]
    restart: always
    networks:
      - colibi_network_dev

  embedding_svc_dev:
    image: python:3.12.2-slim
    env_file:
      - .env.dev
    volumes:
      - .:/app
      - datalake_embedded_text:${INDEX_PATH}
    working_dir: /app
    entrypoint:
      ["/bin/sh", "-c", "apt-get update && apt-get install -y git build-essential && apt-get clean && pip install -r requirements.txt && python main.py"]
    restart: always
    networks:
      - colibi_network_dev
    ports:
      - "${GRPC_PORT}:${GRPC_PORT}"

  datastore:
    image: postgres:16.4
    env_file:
      - .env
    volumes:
      - datalake_storage:/var/lib/postgresql/data
    networks:
      - colibi_network_dev
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U colibi"]
      interval: 5s
      timeout: 5s
      retries: 5

  nats-server:
    image: nats:latest
    command: -DV
    networks:
      - colibi_network_dev

volumes:
  datalake_storage:
    driver: local
  broker_storage:
    driver: local
  datalake_embedded_text:
    driver: local

networks:
  colibi_network_dev:
    external: true
I have the following questions regarding the handling of the Docker Compose file in Pants: Where should I place this file? How do I run it? Best regards, Anu pantsbuild/pants