- Dockerfile: nginx:1.27-alpine serving the exported site, PORT from env, /healthz healthcheck, origin rewrite hook in docker-entrypoint.d - docker/default.conf.template: envsubst PORT, clean URLs without trailing-slash redirect, long cache for hashed assets, no-cache for HTML/sw.js/manifest, 301 http->https via X-Forwarded-Proto, gzip - docker/security-headers.conf: single include so add_header survives per location - docker-compose.yml (Dokploy, no host ports) + docker-compose.override.yml (local) - bake canonical/OG/sitemap/robots origin to https://alterflixhub.hobbypj.com (was the export-time 127.0.0.1:8090), overridable via PUBLIC_ORIGIN - docs/deploy-dokploy.md
9 lines
587 B
YAML
9 lines
587 B
YAML
# รันในเครื่อง (preview) — compose โหลดไฟล์นี้อัตโนมัติเมื่อเรียก `docker compose up` เฉย ๆ
|
|
# Dokploy เรียก `-f ./docker-compose.yml` ตรง ๆ → ไม่โหลดไฟล์นี้ (พอร์ตบน server จึงไม่ชน)
|
|
# เปิดที่ http://127.0.0.1:<HOST_PORT>/ (ผูก 127.0.0.1 เท่านั้น ไม่เปิดออกวงแลน)
|
|
|
|
services:
|
|
web:
|
|
ports:
|
|
- "127.0.0.1:${HOST_PORT:-30004}:${PORT:-30004}"
|