version: '3'

services:
  node_container:
    container_name: node_container
    image: jianboy/node_container:latest
    build:
      context: .
      dockerfile: ./Dockerfile-node
    volumes:
      - ./:/app
      
  frontend:
    image: node:20
    container_name: dev-frontend
    build:
      context: ./frontend
      dockerfile: Dockerfile.dev
    volumes:
      - ./frontend/src:/app/src/
      - ./frontend/public:/app/public
    # env_file: .env
    environment:
      - NEXT_PUBLIC_ENV=development
      - INFISICAL_TELEMETRY_ENABLED=${TELEMETRY_ENABLED}
    networks:
      - infisical-dev