feat: Add initial Docker Compose configuration for the learner-ui service.
This commit is contained in:
parent
7465af1cb9
commit
9a6b4e3e0d
1 changed files with 10 additions and 4 deletions
|
|
@ -1,21 +1,27 @@
|
|||
services:
|
||||
learner-ui:
|
||||
build: .
|
||||
image: elearning-learner-ui:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
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://192.168.1.137:4000/api}
|
||||
# กรณีต้องการระบุ URL อื่นๆ เพิ่มเติม เช่น S3 (ถ้ามีการใช้ในอนาคต)
|
||||
- NUXT_PUBLIC_S3_ENDPOINT=${NUXT_PUBLIC_S3_ENDPOINT:-http://192.168.1.137:9000}
|
||||
security_opt:
|
||||
- apparmor=unconfined
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
networks:
|
||||
- elearning-network
|
||||
|
||||
networks:
|
||||
elearning-network:
|
||||
external: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue