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
Copy file name to clipboardExpand all lines: content/en/docs/deployment/docker-deploy/docker-pad.md
+37-36Lines changed: 37 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,49 +244,50 @@ This section serves as a reference guide and starting point for configuring a re
244
244
This example implementation is provided "as-is" and is not covered under official support. Support requests related to this specific configuration cannot be addressed.
245
245
{{% /alert %}}
246
246
247
-
### Nginx Configuration
247
+
### Configuring Nginx
248
248
249
-
Define services for the app and Nginx reverse proxy.
249
+
To configure Nginx, perform the following steps:
250
250
251
-
```
252
-
services:
253
-
app:
254
-
build: .
255
-
ports:
256
-
- "127.0.0.1:8080:8080" # Bind only localhost
257
-
environment:
258
-
- SPRING_PROFILES_ACTIVE=docker
259
-
nginx:
260
-
image: nginx:alpine
261
-
ports:
262
-
- "80:80"
263
-
volumes:
264
-
- ./nginx.conf:/etc/nginx/nginx.conf:ro
265
-
depends_on:
266
-
- app
267
-
```
251
+
1. Define services for the app and Nginx reverse proxy:
268
252
269
-
Run with `docker-compose up --build`.
253
+
```
254
+
services:
255
+
app:
256
+
build: .
257
+
ports:
258
+
- "127.0.0.1:8080:8080" # Bind only localhost
259
+
environment:
260
+
- SPRING_PROFILES_ACTIVE=docker
261
+
nginx:
262
+
image: nginx:alpine
263
+
ports:
264
+
- "80:80"
265
+
volumes:
266
+
- ./nginx.conf:/etc/nginx/nginx.conf:ro
267
+
depends_on:
268
+
- app
269
+
```
270
270
271
-
Create `nginx.conf` for proxying requests to the app.
271
+
2. Run the following command: `docker-compose up --build`.
272
+
3. Create the following `nginx.conf` file to proxy requests to the app:
0 commit comments