feat: introduce Docker Compose setup and example environment variables for frontend configuration.
This commit is contained in:
parent
dfcabe306c
commit
04470cd926
2 changed files with 4 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
# API Configuration (Nuxt 3 uses NUXT_PUBLIC_ prefix for client-side access)
|
# API Configuration (Nuxt 3 uses NUXT_PUBLIC_ prefix for client-side access)
|
||||||
NUXT_PUBLIC_API_BASE=http://localhost:4000/api
|
NUXT_PUBLIC_API_BASE=http://192.168.1.137:4000/api
|
||||||
|
|
||||||
# S3 / MinIO Configuration (If used in frontend later)
|
# S3 / MinIO Configuration (If used in frontend later)
|
||||||
# NUXT_PUBLIC_S3_ENDPOINT=http://192.168.1.100:9000
|
# NUXT_PUBLIC_S3_ENDPOINT=http://192.168.1.137:9000
|
||||||
# NUXT_PUBLIC_S3_BUCKET=courses
|
# NUXT_PUBLIC_S3_BUCKET=courses
|
||||||
|
|
||||||
# App Configuration
|
# App Configuration
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ services:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
# URL ของ Backend API (Nuxt 3 จะใช้ NUXT_PUBLIC_ นำหน้า)
|
# URL ของ Backend API (Nuxt 3 จะใช้ NUXT_PUBLIC_ นำหน้า)
|
||||||
- NUXT_PUBLIC_API_BASE=${NUXT_PUBLIC_API_BASE:-http://localhost:4000/api}
|
- NUXT_PUBLIC_API_BASE=${NUXT_PUBLIC_API_BASE:-http://192.168.1.137:4000/api}
|
||||||
# กรณีต้องการระบุ URL อื่นๆ เพิ่มเติม เช่น S3 (ถ้ามีการใช้ในอนาคต)
|
# กรณีต้องการระบุ URL อื่นๆ เพิ่มเติม เช่น S3 (ถ้ามีการใช้ในอนาคต)
|
||||||
- NUXT_PUBLIC_S3_ENDPOINT=${NUXT_PUBLIC_S3_ENDPOINT:-http://192.168.1.100:9000}
|
- NUXT_PUBLIC_S3_ENDPOINT=${NUXT_PUBLIC_S3_ENDPOINT:-http://192.168.1.137:9000}
|
||||||
networks:
|
networks:
|
||||||
- elearning-network
|
- elearning-network
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue