feat: Add initial Docker setup and development environment documentation.
This commit is contained in:
parent
42b7399868
commit
ca65dbff4c
5 changed files with 124 additions and 28 deletions
19
Frontend-Learner/docker-compose.yml
Normal file
19
Frontend-Learner/docker-compose.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
services:
|
||||
learner-ui:
|
||||
build: .
|
||||
container_name: elearning-learner-ui
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
# URL ของ Backend API (Nuxt 3 จะใช้ NUXT_PUBLIC_ นำหน้า)
|
||||
- NUXT_PUBLIC_API_BASE=${NUXT_PUBLIC_API_BASE:-http://localhost:4000/api}
|
||||
# กรณีต้องการระบุ URL อื่นๆ เพิ่มเติม เช่น S3 (ถ้ามีการใช้ในอนาคต)
|
||||
- NUXT_PUBLIC_S3_ENDPOINT=${NUXT_PUBLIC_S3_ENDPOINT:-http://192.168.1.100:9000}
|
||||
networks:
|
||||
- elearning-network
|
||||
|
||||
networks:
|
||||
elearning-network:
|
||||
external: true
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue