#
# This docker-compose.dev.yml file is for development deployments of ParadeDB only. It directly builds our
# Dockerfile, which packages all ParadeDB extensions. It is not intended for production use. For hobby production
# usage, please use docker-compose.yml. For professional production usage, we recommend using our Helm chart.
#

services:
  paradedb-dev:
    build:
      context: ..
      dockerfile: ./docker/Dockerfile
      cache_from:
        - type=local,src=./.docker_cache_dev
      cache_to:
        - type=local,dest=./.docker_cache_dev
    image: paradedb/paradedb:latest # Tag the image with `latest` to make it run in the `docker-compose.yml` file
    container_name: paradedb-dev
    environment:
      POSTGRES_USER: myuser
      POSTGRES_PASSWORD: mypassword
      POSTGRES_DB: mydatabase
    ports:
      - "5432:5432"
