You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance Docker deployment documentation with proxy setups
Added sections on configuring reverse proxies with Nginx and Traefik, including example configurations and key differences. Included high availability setup with Docker Compose and manual build instructions.
Copy file name to clipboardExpand all lines: content/en/docs/deployment/docker-deploy/docker-pad.md
+162Lines changed: 162 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,3 +235,165 @@ The Mendix Runtime exposes health check endpoints that can be used to monitor th
235
235
| `/health/ready` | Returns the readiness status — indicates if the app is ready to serve traffic |
236
236
237
237
These endpoints are especially useful when integrating with orchestration platforms such as Kubernetes, which rely on liveness and readiness probes to manage container lifecycle.
238
+
239
+
## Reverse Proxy
240
+
241
+
This section serves as a reference guide and starting point for configuring a reverse proxy on Docker. The configurations provided are intended for illustrative purposes only, as the appropriate settings will vary depending on your specific network environment and infrastructure setup.
242
+
Please note that this example implementation is provided "as-is" and is not covered under official support. Support requests related to this specific configuration cannot be addressed.
243
+
244
+
### Nginx Configuration
245
+
246
+
Define services for the app and Nginx reverse proxy.
247
+
248
+
```
249
+
services:
250
+
app:
251
+
build: .
252
+
ports:
253
+
- "127.0.0.1:8080:8080" # Bind only localhost
254
+
environment:
255
+
- SPRING_PROFILES_ACTIVE=docker
256
+
nginx:
257
+
image: nginx:alpine
258
+
ports:
259
+
- "80:80"
260
+
volumes:
261
+
- ./nginx.conf:/etc/nginx/nginx.conf:ro
262
+
depends_on:
263
+
- app
264
+
```
265
+
266
+
Run with `docker-compose up --build`.
267
+
268
+
Create `nginx.conf` for proxying requests to the app.
This setup exposes only port 80 publicly while proxying to your app on internal port 8080.
287
+
288
+
### Traefik configuration
289
+
290
+
To set up Traefik as a reverse proxy for your app running in a Docker container, use Docker Compose for simplicity. This configuration exposes Traefik on ports 80/8080, automatically discovers your app container via labels, and routes traffic to it.
291
+
Traefik uses two networks: frontend (public) and backend (internal). Add Traefik labels to the app service.
High availability requires redundancy, health checks, and restarts to handle failures. Scale for HA with Docker Compose (for local/dev) or Kubernetes:
354
+
Again, this section serves as a reference guide and starting point for configuring high availability on Docker. The configurations provided are intended for illustrative purposes only, as the appropriate settings will vary depending on your specific network environment and infrastructure setup.
355
+
Please note that this example implementation is provided "as-is" and is not covered under official support. Support requests related to this specific configuration cannot be addressed.
0 commit comments