Expose Master ports for Nginx Proxy Manager in front of Dokploy.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a5c6fd5fe4
commit
09c422254a
2 changed files with 45 additions and 13 deletions
|
|
@ -54,8 +54,9 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
expose:
|
# Host ports for Nginx Proxy Manager (no Dokploy domain needed)
|
||||||
- "3000"
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
|
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|
@ -74,8 +75,8 @@ services:
|
||||||
NEXT_PUBLIC_API_URL: http://master-api:3000
|
NEXT_PUBLIC_API_URL: http://master-api:3000
|
||||||
depends_on:
|
depends_on:
|
||||||
- master-api
|
- master-api
|
||||||
expose:
|
ports:
|
||||||
- "3000"
|
- "3001:3000"
|
||||||
networks:
|
networks:
|
||||||
- media-cluster
|
- media-cluster
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,19 +69,50 @@ HIDE_UNAVAILABLE_TITLES=false
|
||||||
|
|
||||||
Belangrijk: `DATABASE_URL` wachtwoord moet **exact** gelijk zijn aan `POSTGRES_PASSWORD`.
|
Belangrijk: `DATABASE_URL` wachtwoord moet **exact** gelijk zijn aan `POSTGRES_PASSWORD`.
|
||||||
|
|
||||||
### 3. Domeinen (Dokploy Traefik)
|
### 3. Domeinen — bij jou via Nginx Proxy Manager
|
||||||
|
|
||||||
Koppel domeinen aan de juiste service/poort:
|
**Zet géén domein in Dokploy** als NPM al HTTPS doet.
|
||||||
|
|
||||||
| Domein | Service | Poort | Opmerking |
|
Dokploy publiceert:
|
||||||
|--------|---------|-------|-----------|
|
|
||||||
| `master.jouwdomein.nl` | `master-api` | `3000` | **WebSockets aan** |
|
|
||||||
| `admin.jouwdomein.nl` | `admin-ui` | `3000` | Admin UI |
|
|
||||||
|
|
||||||
WebSockets zijn verplicht: nodes verbinden via
|
| Service | Host-poort |
|
||||||
`wss://master.jouwdomein.nl/api/v1/node/connect`.
|
|---------|------------|
|
||||||
|
| `master-api` | `3000` |
|
||||||
|
| `admin-ui` | `3001` |
|
||||||
|
|
||||||
DNS A/AAAA records naar je Dokploy-server.
|
In **Nginx Proxy Manager** maak je 2 Proxy Hosts:
|
||||||
|
|
||||||
|
#### Master API
|
||||||
|
| Veld | Waarde |
|
||||||
|
|------|--------|
|
||||||
|
| Domain | `master.jouwdomein.nl` |
|
||||||
|
| Scheme | `http` |
|
||||||
|
| Forward Hostname/IP | LAN-IP van de **Dokploy-server** |
|
||||||
|
| Forward Port | `3000` |
|
||||||
|
| Websockets Support | **Aan** |
|
||||||
|
| SSL | Let's Encrypt + Force SSL |
|
||||||
|
|
||||||
|
Advanced (aanbevolen):
|
||||||
|
|
||||||
|
```nginx
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_read_timeout 86400s;
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Admin UI
|
||||||
|
| Veld | Waarde |
|
||||||
|
|------|--------|
|
||||||
|
| Domain | `admin.jouwdomein.nl` |
|
||||||
|
| Scheme | `http` |
|
||||||
|
| Forward Hostname/IP | LAN-IP van de **Dokploy-server** |
|
||||||
|
| Forward Port | `3001` |
|
||||||
|
| SSL | Let's Encrypt + Force SSL |
|
||||||
|
|
||||||
|
DNS A/AAAA van beide domeinen → publiek IP waar NPM op luistert (poort 443).
|
||||||
|
|
||||||
|
`PUBLIC_URL` in de env moet `https://master.jouwdomein.nl` zijn (het NPM-domein).
|
||||||
|
|
||||||
### 4. Deploy
|
### 4. Deploy
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue