25 lines
1.1 KiB
Bash
25 lines
1.1 KiB
Bash
# .env.example — คัดลอกเป็น .env ที่ราก repo แล้วแก้ค่าจริง (ห้าม commit .env)
|
|
# พอร์ตทุกตัวแก้ที่นี่ที่เดียว · container port = พอร์ตที่ process ฟังในคอนเทนเนอร์ · host port = พอร์ตที่แมปออกเครื่อง
|
|
|
|
# ---- เว็บ static (nginx) ----
|
|
WEB_CONTAINER_PORT=8080
|
|
WEB_HOST_PORT=8097
|
|
|
|
# ---- API (Julia) ----
|
|
API_CONTAINER_PORT=8000
|
|
API_HOST_PORT=8000
|
|
|
|
# ---- PostgreSQL ----
|
|
DB_HOST_PORT=5433
|
|
DB_NAME=farm_planning
|
|
DB_USER=postgres
|
|
# ต้องตั้งค่านี้เอง — compose จะไม่ยอม start ถ้าว่าง
|
|
DB_PASSWORD=
|
|
|
|
# ---- ตัวเลือก ----
|
|
# true = บันทึกผลคำนวณลง calculation_runs
|
|
FARM_PERSIST_RUNS=true
|
|
# ตอนพัฒนาให้เปิดกว้างได้ · prod ให้ใส่ origin จริง เช่น https://farm.example.com
|
|
FARM_CORS_ORIGIN=*
|
|
TZ=Asia/Bangkok
|