> For the complete documentation index, see [llms.txt](https://pond-3.gitbook.io/pond-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pond-3.gitbook.io/pond-docs/undefined.md).

# เเบบฝึกหัด

### สร้างไฟล์ docker-compose.yml Database + เชื่อมต่อใน db.js + ใช้ Docker Desktop

**สิ่งที่ต้องส่ง** โค้ด db.js ที่เชื่อมต่อจริงภาพ/หลักฐานว่า container และ volume ถูกสร้างแล้ว (เช่น docker ps, docker volume ls)&#x20;เกณฑ์ผ่าน

รีสตาร์ท container แล้วข้อมูลยังอยู่ (แปลว่า volume ใช้ได้จริง)\
แอปเชื่อม DB ได้

รูปภาพตัวอย่าง container บน Docker Desktop

<figure><img src="/files/Y3VUO6IdeECLq8blYZfb" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
สามารถใช้งานได้
{% endhint %}
