Skip to content

Commit f1aaf0d

Browse files
Added docker-compose support for nginx-nms-docker (#94)
* Added API Connectivity Manager 1.5.0 support * Ownership fix * Startup script fix * NGINX App Protect WAF updates * Tested with NGINX Instance Manager 2.9.1 * Added docker-compose support
1 parent 70bedbb commit f1aaf0d

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

nginx-nms-docker/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ and then restart nginx-agent
255255

256256
# Starting NGINX Management Suite
257257

258+
## On Kubernetes
259+
258260
```
259261
$ ./scripts/nimDockerStart.sh start
260262
namespace/nginx-nim2 created
@@ -281,9 +283,19 @@ NGINX Management Suite GUI is now reachable from outside the cluster at:
281283
- gRPC: `nim2.f5.ff.lan:30443`
282284
- Second Sight: see [usage](https://github.com/F5Networks/SecondSight/blob/main/USAGE.md)
283285

286+
## On docker-compose
287+
288+
See [docker-compose](contrib/docker-compose)
289+
284290
# Stopping NGINX Management Suite
285291

292+
## On Kubernetes
293+
286294
```
287295
$ ./scripts/nimDockerStart.sh stop
288296
namespace "nginx-nim2" deleted
289297
```
298+
299+
## On docker-compose
300+
301+
See [docker-compose](contrib/docker-compose)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NGINX Management Suite settings
2+
NIM_IMAGE=<NGINX_MANAGEMENT_SUITE_DOCKER_IMAGE_NAME>
3+
NIM_LICENSE=<BASE64_ENCODED_LICENSE_FILE>
4+
NIM_USERNAME=admin
5+
NIM_PASSWORD=nimadmin
6+
7+
# Clickhouse settings
8+
NIM_CLICKHOUSE_ADDRESS=clickhouse
9+
NIM_CLICKHOUSE_USERNAME=default
10+
NIM_CLICKHOUSE_PASSWORD=NGINXr0cks
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Docker-compose for NGINX Management Suite
2+
3+
1. Edit the `.env` file configuring the NGINX Management Suite docker image name and the base64-encoded license
4+
2. Start NGINX Management Suite using
5+
6+
```
7+
docker-compose -f docker-compose.yaml up -d
8+
```
9+
10+
3. Stop NGINX Management Suite using
11+
12+
```
13+
docker-compose -f docker-compose.yaml down
14+
```
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: "3"
2+
services:
3+
clickhouse:
4+
image: clickhouse/clickhouse-server:23.1.2.9
5+
ports:
6+
- "9000:9000"
7+
environment:
8+
- CLICKHOUSE_USER=${NIM_CLICKHOUSE_USERNAME}
9+
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
10+
- CLICKHOUSE_PASSWORD=${NIM_CLICKHOUSE_PASSWORD}
11+
volumes:
12+
- db-data:/var/lib/clickhouse
13+
ulimits:
14+
nproc: 65535
15+
nofile:
16+
soft: 262144
17+
hard: 262144
18+
19+
nms:
20+
image: ${NIM_IMAGE}
21+
ports:
22+
- "443:443"
23+
environment:
24+
- NIM_LICENSE=${NIM_LICENSE}
25+
- NIM_USERNAME=${NIM_USERNAME}
26+
- NIM_PASSWORD=${NIM_PASSWORD}
27+
- NIM_CLICKHOUSE_ADDRESS=${NIM_CLICKHOUSE_ADDRESS}
28+
- NIM_CLICKHOUSE_PORT=9000
29+
- NIM_CLICKHOUSE_USERNAME=${NIM_CLICKHOUSE_USERNAME}
30+
- NIM_CLICKHOUSE_PASSWORD=${NIM_CLICKHOUSE_PASSWORD}
31+
volumes:
32+
- nms-data:/var/lib/nms
33+
34+
volumes:
35+
db-data:
36+
nms-data:

0 commit comments

Comments
 (0)