Fix Dokploy Bad Gateway: drop required .env and add app healthcheck.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-29 04:10:37 +03:00
co-authored by Cursor
parent 7b77d84f68
commit 6510de0214
4 changed files with 48 additions and 15 deletions
+14 -4
View File
@@ -11,15 +11,25 @@
## Быстрый старт (Dokploy / Docker)
1. Скопируйте `.env.example``.env` и задайте пароли + `DOMAIN`.
2. В Dokploy создайте приложение типа **Docker Compose**, укажите этот репозиторий.
3. Deploy — поднимутся сервисы `app` и `postgres`.
1. В Dokploy создайте **Docker Compose** приложение из этого репозитория.
2. Задайте Environment Variables (`.env` в git не лежит):
```env
APP_SECRET=long-random-secret
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=strong-password
POSTGRES_PASSWORD=strong-db-password
```
3. Deploy. Домен в Dokploy → сервис **`app`**, порт **`8080`** (не postgres).
4. Если **Bad Gateway**: смотрите логи `app` — чаще всего падение из‑за БД или домен смотрит не на тот порт.
```bash
docker compose up -d --build
docker compose logs -f app
```
Панель: `http://localhost:8080`
Панель: `http://localhost:8080` · health: `/health`
## Авторизация админа (из `.env`)