version: '3.8' services: reactjs: build: ./react-site volumes: - ./react-site:/app - /app/node_modules # prevent overwriting ports: - "3000:3000" working_dir: /app command: bun dev agent: build: ./agent volumes: - ./react-site:/workspace/react-site # same mount - /var/run/docker.sock:/var/run/docker.sock # for docker commands environment: - REACTJS_CONTAINER=reactjs working_dir: /app