Align Dokploy compose with Traefik: expose port 80 only, no host mapping.
Remove FRONTEND_PORT from deployment compose; document Container Port 80 in Dokploy UI and clarify Gitea OAuth vs runtime git clone auth. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
# ============================================================
|
||||
# Slavic Pulse - Docker Compose (Dokploy / manual)
|
||||
# ============================================================
|
||||
# Dokploy-compatible pattern: uses pre-built image + runtime git clone.
|
||||
# Dokploy only copies docker-compose.yml + .env to the server, so local
|
||||
# build context with a Dockerfile does not work.
|
||||
# Dokploy + Traefik: NIE mapuj portu na hosta (ports:).
|
||||
# W UI Dokploy ustaw domenę i Container Port = 80 — Traefik routuje po FQDN.
|
||||
# Wewnętrznie nginx nasłuchuje na :80 (expose poniżej).
|
||||
#
|
||||
# Port hosta: FRONTEND_PORT z .env (domyślnie 8082) → nginx w kontenerze na porcie 80.
|
||||
# Dokploy/Traefik routuje po FQDN do wewnętrznego portu 80 kontenera.
|
||||
#
|
||||
# WAŻNE: repozytorium Gitea musi być publiczne LUB ustaw GITEA_REPO_URL z tokenem w .env
|
||||
# (patrz README — bez tego git clone kończy się exit 128 i kontener restartuje w pętli).
|
||||
# Runtime git clone — repozytorium musi być publiczne LUB ustaw GITEA_REPO_URL w .env
|
||||
# (patrz README — prywatne repo bez tokenu = exit 128, restart loop).
|
||||
# ============================================================
|
||||
|
||||
services:
|
||||
@@ -17,8 +14,9 @@ services:
|
||||
image: nginx:1.27-alpine
|
||||
container_name: slavic-pulse-com-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${FRONTEND_PORT:-8082}:80"
|
||||
|
||||
expose:
|
||||
- "80"
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
Reference in New Issue
Block a user