services:
  app:
    image: oven/bun:latest
    working_dir: /app
    command: sh -lc "bun install && bun run index.ts"
    ports:
      - "${PORT:-3000}:${PORT:-3000}"
    environment:
      - PORT=${PORT:-3000}
    env_file:
      - .env
    volumes:
      - ./:/app
      - bun_node_modules:/app/node_modules

volumes:
  bun_node_modules:
