version: "3.9" services: app: image: eclipse-temurin:21-jdk working_dir: /app volumes: - ./src:/app # ← bind mount(ホストの ./src を /app に) tty: true stdin_open: true command: bash # # command: bash -lc "javac Hello.java && java Hello"