Skip to content

Commit cf20b88

Browse files
apcurriersdutta9
andauthored
Lab4 Updates (#16)
* Updated lab4 readme, media file names and lab2 container names * prerequisites (#13) * Remove unneeded files * Updated images and readme to reflect new workshop * Updated screenshots to reflect new workshop name and UI changes. * Added direct link to mange config sync groups on docs site. * Made all suggested changes from PR review --------- Co-authored-by: Shouvik Dutta <[email protected]>
1 parent ab42659 commit cf20b88

33 files changed

+421
-272
lines changed

labs/lab2/docker-compose.yml

+128-128
Original file line numberDiff line numberDiff line change
@@ -5,160 +5,160 @@
55
# Chris Akker, Shouvik Dutta, Adam Currier
66
#
77
services:
8-
basics-plus1: # Alpine NGINX Plus Web / Load Balancer
8+
basics-plus1: # Alpine NGINX Plus Web / Load Balancer
99
environment:
10-
NGINX_AGENT_SERVER_HOST: "agent.connect.nginx.com"
11-
NGINX_AGENT_SERVER_GRPCPORT: "443"
12-
NGINX_AGENT_TLS_ENABLE: "true"
13-
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron basics- One Console
14-
# NGINX_AGENT_INSTANCE_GROUP: basics-workshop-plus
15-
hostname: basics-plus1
16-
container_name: basics-plus1
17-
image: private-registry.nginx.com/nginx-plus/agent:nginx-plus-r32-alpine-3.20-20240613 # CVE - From Nginx Private Registry
18-
volumes: # Sync these folders to container
19-
- ./nginx-plus/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
20-
- ./nginx-plus/etc/nginx/conf.d:/etc/nginx/conf.d
21-
- ./nginx-plus/etc/nginx/includes:/etc/nginx/includes
22-
- ./nginx-plus/usr/share/nginx/html:/usr/share/nginx/html
10+
NGINX_AGENT_SERVER_HOST: 'agent.connect.nginx.com'
11+
NGINX_AGENT_SERVER_GRPCPORT: '443'
12+
NGINX_AGENT_TLS_ENABLE: 'true'
13+
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey From One Console
14+
# NGINX_AGENT_INSTANCE_GROUP: one-workshop-plus
15+
hostname: one-workshop-plus1
16+
container_name: one-workshop-plus1
17+
image: private-registry.nginx.com/nginx-plus/agent:nginx-plus-r32-alpine-3.20-20240613 # CVE - From Nginx Private Registry
18+
volumes: # Sync these folders to container
19+
- ./nginx-plus/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
20+
- ./nginx-plus/etc/nginx/conf.d:/etc/nginx/conf.d
21+
- ./nginx-plus/etc/nginx/includes:/etc/nginx/includes
22+
- ./nginx-plus/usr/share/nginx/html:/usr/share/nginx/html
2323
ports:
24-
- 80:80 # Open for HTTP
25-
- 443:443 # Open for HTTPS
26-
- 9000:9000 # Open for stub status page
27-
- 9113:9113 # Open for Prometheus Scraper page
24+
- 80:80 # Open for HTTP
25+
- 443:443 # Open for HTTPS
26+
- 9000:9000 # Open for stub status page
27+
- 9113:9113 # Open for Prometheus Scraper page
2828
restart: always
2929
#
30-
basics-plus2: # Alpine NGINX Plus Web / Load Balancer
30+
basics-plus2: # Alpine NGINX Plus Web / Load Balancer
3131
environment:
32-
NGINX_AGENT_SERVER_HOST: "agent.connect.nginx.com"
33-
NGINX_AGENT_SERVER_GRPCPORT: "443"
34-
NGINX_AGENT_TLS_ENABLE: "true"
35-
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
36-
# NGINX_AGENT_INSTANCE_GROUP: basics-workshop-plus
37-
hostname: basics-plus2
38-
container_name: basics-plus2
32+
NGINX_AGENT_SERVER_HOST: 'agent.connect.nginx.com'
33+
NGINX_AGENT_SERVER_GRPCPORT: '443'
34+
NGINX_AGENT_TLS_ENABLE: 'true'
35+
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
36+
# NGINX_AGENT_INSTANCE_GROUP: one-workshop-plus
37+
hostname: one-workshop-plus2
38+
container_name: one-workshop-plus2
3939
image: private-registry.nginx.com/nginx-plus/agent:nginx-plus-r31-alpine-3.19-20240522 # CVE - From Nginx Private Registry
40-
volumes: # Sync these folders to container
41-
- ./nginx-plus/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
42-
- ./nginx-plus/etc/nginx/conf.d:/etc/nginx/conf.d
43-
- ./nginx-plus/etc/nginx/includes:/etc/nginx/includes
44-
- ./nginx-plus/usr/share/nginx/html:/usr/share/nginx/html
40+
volumes: # Sync these folders to container
41+
- ./nginx-plus/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
42+
- ./nginx-plus/etc/nginx/conf.d:/etc/nginx/conf.d
43+
- ./nginx-plus/etc/nginx/includes:/etc/nginx/includes
44+
- ./nginx-plus/usr/share/nginx/html:/usr/share/nginx/html
4545
ports:
46-
- "80" # Open for HTTP
47-
- "443" # Open for HTTPS
48-
- "9000" # Open for API / Dashboard page
49-
- "9113" # Open for Prometheus Scraper page
46+
- '80' # Open for HTTP
47+
- '443' # Open for HTTPS
48+
- '9000' # Open for API / Dashboard page
49+
- '9113' # Open for Prometheus Scraper page
5050
restart: always
5151
#
52-
basics-plus3: # RHEL UBI NGINX Plus Web / Load Balancer
52+
basics-plus3: # RHEL UBI NGINX Plus Web / Load Balancer
5353
environment:
54-
NGINX_AGENT_SERVER_HOST: "agent.connect.nginx.com"
55-
NGINX_AGENT_SERVER_GRPCPORT: "443"
56-
NGINX_AGENT_TLS_ENABLE: "true"
57-
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
58-
# NGINX_AGENT_INSTANCE_GROUP: basics-workshop-plus
59-
hostname: basics-plus3
60-
container_name: basics-plus3
61-
image: private-registry.nginx.com/nginx-plus/agent:nginx-plus-r31-ubi-9-20240522 # From Nginx Private Registry
62-
volumes: # Sync these folders to container
63-
- ./nginx-plus/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
64-
- ./nginx-plus/etc/nginx/conf.d:/etc/nginx/conf.d
65-
- ./nginx-plus/etc/nginx/includes:/etc/nginx/includes
66-
- ./nginx-plus/usr/share/nginx/html:/usr/share/nginx/html
54+
NGINX_AGENT_SERVER_HOST: 'agent.connect.nginx.com'
55+
NGINX_AGENT_SERVER_GRPCPORT: '443'
56+
NGINX_AGENT_TLS_ENABLE: 'true'
57+
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
58+
# NGINX_AGENT_INSTANCE_GROUP: one-workshop-plus
59+
hostname: one-workshop-plus3
60+
container_name: one-workshop-plus3
61+
image: private-registry.nginx.com/nginx-plus/agent:nginx-plus-r31-ubi-9-20240522 # From Nginx Private Registry
62+
volumes: # Sync these folders to container
63+
- ./nginx-plus/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
64+
- ./nginx-plus/etc/nginx/conf.d:/etc/nginx/conf.d
65+
- ./nginx-plus/etc/nginx/includes:/etc/nginx/includes
66+
- ./nginx-plus/usr/share/nginx/html:/usr/share/nginx/html
6767
ports:
68-
- "80" # Open for HTTP
69-
- "443" # Open for HTTPS
70-
- "9000" # Open for API / Dashboard page
71-
- "9113" # Open for Prometheus Scraper page
68+
- '80' # Open for HTTP
69+
- '443' # Open for HTTPS
70+
- '9000' # Open for API / Dashboard page
71+
- '9113' # Open for Prometheus Scraper page
7272
restart: always
7373
#
74-
basics-oss1: # Debian NGINX OSS Web / Load Balancer
74+
basics-oss1: # Debian NGINX OSS Web / Load Balancer
7575
environment:
76-
NGINX_AGENT_SERVER_HOST: "agent.connect.nginx.com"
77-
NGINX_AGENT_SERVER_GRPCPORT: "443"
78-
NGINX_AGENT_TLS_ENABLE: "true"
79-
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
80-
hostname: basics-oss1
81-
container_name: basics-oss1
82-
image: docker-registry.nginx.com/nginx/agent:mainline # From Docker Public Registry
83-
volumes: # Sync these folders to container
84-
- ./nginx-oss/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
85-
- ./nginx-oss/etc/nginx/conf.d:/etc/nginx/conf.d
86-
- ./nginx-oss/etc/nginx/includes:/etc/nginx/includes
87-
- ./nginx-oss/etc/ssl/nginx:/etc/ssl/nginx
88-
- ./nginx-oss/usr/share/nginx/html:/usr/share/nginx/html
76+
NGINX_AGENT_SERVER_HOST: 'agent.connect.nginx.com'
77+
NGINX_AGENT_SERVER_GRPCPORT: '443'
78+
NGINX_AGENT_TLS_ENABLE: 'true'
79+
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
80+
hostname: one-workshop-oss1
81+
container_name: one-workshop-oss1
82+
image: docker-registry.nginx.com/nginx/agent:mainline # From Docker Public Registry
83+
volumes: # Sync these folders to container
84+
- ./nginx-oss/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
85+
- ./nginx-oss/etc/nginx/conf.d:/etc/nginx/conf.d
86+
- ./nginx-oss/etc/nginx/includes:/etc/nginx/includes
87+
- ./nginx-oss/etc/ssl/nginx:/etc/ssl/nginx
88+
- ./nginx-oss/usr/share/nginx/html:/usr/share/nginx/html
8989
ports:
90-
- "80" # Open for HTTP
91-
- "443" # Open for HTTPS
92-
- "9000" # Open for stub status page
93-
- "9113" # Open for Prometheus Scraper page
90+
- '80' # Open for HTTP
91+
- '443' # Open for HTTPS
92+
- '9000' # Open for stub status page
93+
- '9113' # Open for Prometheus Scraper page
9494
restart: always
9595
#
96-
basics-oss2: # Alpine NGINX OSS Web / Load Balancer
96+
basics-oss2: # Alpine NGINX OSS Web / Load Balancer
9797
environment:
98-
NGINX_AGENT_SERVER_HOST: "agent.connect.nginx.com"
99-
NGINX_AGENT_SERVER_GRPCPORT: "443"
100-
NGINX_AGENT_TLS_ENABLE: "true"
101-
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
102-
hostname: basics-oss2
103-
container_name: basics-oss2
104-
image: docker-registry.nginx.com/nginx/agent:alpine # From Docker Public Registry
105-
volumes: # Sync these folders to container
106-
- ./nginx-oss/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
107-
- ./nginx-oss/etc/nginx/conf.d:/etc/nginx/conf.d
108-
- ./nginx-oss/etc/nginx/includes:/etc/nginx/includes
109-
- ./nginx-oss/etc/ssl/nginx:/etc/ssl/nginx
110-
- ./nginx-oss/usr/share/nginx/html:/usr/share/nginx/html
98+
NGINX_AGENT_SERVER_HOST: 'agent.connect.nginx.com'
99+
NGINX_AGENT_SERVER_GRPCPORT: '443'
100+
NGINX_AGENT_TLS_ENABLE: 'true'
101+
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
102+
hostname: one-workshop-oss2
103+
container_name: one-workshop-oss2
104+
image: docker-registry.nginx.com/nginx/agent:alpine # From Docker Public Registry
105+
volumes: # Sync these folders to container
106+
- ./nginx-oss/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
107+
- ./nginx-oss/etc/nginx/conf.d:/etc/nginx/conf.d
108+
- ./nginx-oss/etc/nginx/includes:/etc/nginx/includes
109+
- ./nginx-oss/etc/ssl/nginx:/etc/ssl/nginx
110+
- ./nginx-oss/usr/share/nginx/html:/usr/share/nginx/html
111111
ports:
112-
- "80" # Open for HTTP
113-
- "443" # Open for HTTPS
114-
- "9000" # Open for stub status page
115-
- "9113" # Open for Prometheus Scraper page
112+
- '80' # Open for HTTP
113+
- '443' # Open for HTTPS
114+
- '9000' # Open for stub status page
115+
- '9113' # Open for Prometheus Scraper page
116116
restart: always
117117
#
118-
basics-oss3: # Older Alpine NGINX OSS Web / Load Balancer
118+
basics-oss3: # Older Alpine NGINX OSS Web / Load Balancer
119119
environment:
120-
NGINX_AGENT_SERVER_HOST: "agent.connect.nginx.com"
121-
NGINX_AGENT_SERVER_GRPCPORT: "443"
122-
NGINX_AGENT_TLS_ENABLE: "true"
123-
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
124-
hostname: basics-oss3
125-
container_name: basics-oss3
126-
image: docker-registry.nginx.com/nginx/agent:1.26-alpine # From Docker Public Registry
127-
volumes: # Sync these folders to container
128-
- ./nginx-oss/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
129-
- ./nginx-oss/etc/nginx/conf.d:/etc/nginx/conf.d
130-
- ./nginx-oss/etc/nginx/includes:/etc/nginx/includes
131-
- ./nginx-oss/etc/ssl/nginx:/etc/ssl/nginx
132-
- ./nginx-oss/usr/share/nginx/html:/usr/share/nginx/html
120+
NGINX_AGENT_SERVER_HOST: 'agent.connect.nginx.com'
121+
NGINX_AGENT_SERVER_GRPCPORT: '443'
122+
NGINX_AGENT_TLS_ENABLE: 'true'
123+
NGINX_AGENT_SERVER_TOKEN: $TOKEN # Datakey Fron Nginx One Console
124+
hostname: one-workshop-oss3
125+
container_name: one-workshop-oss3
126+
image: docker-registry.nginx.com/nginx/agent:1.26-alpine # From Docker Public Registry
127+
volumes: # Sync these folders to container
128+
- ./nginx-oss/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
129+
- ./nginx-oss/etc/nginx/conf.d:/etc/nginx/conf.d
130+
- ./nginx-oss/etc/nginx/includes:/etc/nginx/includes
131+
- ./nginx-oss/etc/ssl/nginx:/etc/ssl/nginx
132+
- ./nginx-oss/usr/share/nginx/html:/usr/share/nginx/html
133133
ports:
134-
- "80" # Open for HTTP
135-
- "443" # Open for HTTPS
136-
- "9000" # Open for stub status page
137-
- "9113" # Open for Prometheus Scraper page
134+
- '80' # Open for HTTP
135+
- '443' # Open for HTTPS
136+
- '9000' # Open for stub status page
137+
- '9113' # Open for Prometheus Scraper page
138138
restart: always
139139
#
140140
web1:
141-
hostname: web1
142-
container_name: web1
143-
platform: linux/amd64
144-
image: nginxinc/ingress-demo # Image from Docker Hub
145-
ports:
146-
- "80" # Open for HTTP
147-
- "443" # Open for HTTPS
141+
hostname: web1
142+
container_name: web1
143+
platform: linux/amd64
144+
image: nginxinc/ingress-demo # Image from Docker Hub
145+
ports:
146+
- '80' # Open for HTTP
147+
- '443' # Open for HTTPS
148148
web2:
149-
hostname: web2
150-
container_name: web2
151-
platform: linux/amd64
152-
image: nginxinc/ingress-demo
153-
ports:
154-
- "80"
155-
- "433"
149+
hostname: web2
150+
container_name: web2
151+
platform: linux/amd64
152+
image: nginxinc/ingress-demo
153+
ports:
154+
- '80'
155+
- '433'
156156
web3:
157-
hostname: web3
158-
container_name: web3
159-
platform: linux/amd64
160-
image: nginxinc/ingress-demo
161-
ports:
162-
- "80"
163-
- "443"
157+
hostname: web3
158+
container_name: web3
159+
platform: linux/amd64
160+
image: nginxinc/ingress-demo
161+
ports:
162+
- '80'
163+
- '443'
164164

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
server {
2+
listen 80 default_server;
3+
server_name localhost;
4+
5+
#access_log /var/log/nginx/host.access.log main;
6+
7+
location / {
8+
root /usr/share/nginx/html;
9+
index index.html index.htm;
10+
}
11+
12+
#error_page 404 /404.html;
13+
14+
# redirect server error pages to the static page /50x.html
15+
#
16+
error_page 500 502 503 504 /50x.html;
17+
location = /50x.html {
18+
root /usr/share/nginx/html;
19+
}
20+
21+
location /test_header {
22+
add_header X-Test-App true;
23+
return 200 'HTTP/1.1 200 OK\nContent-Type: text/html\n\n<html><body>Welcome to Lab 4 of the NGINX One Workshop!</body></html>';
24+
}
25+
26+
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
27+
#
28+
#location ~ \.php$ {
29+
# proxy_pass http://127.0.0.1;
30+
#}
31+
32+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
33+
#
34+
#location ~ \.php$ {
35+
# root html;
36+
# fastcgi_pass 127.0.0.1:9000;
37+
# fastcgi_index index.php;
38+
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
39+
# include fastcgi_params;
40+
#}
41+
42+
# deny access to .htaccess files, if Apache's document root
43+
# concurs with nginx's one
44+
#
45+
#location ~ /\.ht {
46+
# deny all;
47+
#}
48+
49+
# enable /api/ location with appropriate access control in order
50+
# to make use of NGINX Plus API
51+
#
52+
#location /api/ {
53+
# api write=on;
54+
# allow 127.0.0.1;
55+
# deny all;
56+
#}
57+
58+
# enable NGINX Plus Dashboard; requires /api/ location to be
59+
# enabled and appropriate access control for remote access
60+
#
61+
#location = /dashboard.html {
62+
# root /usr/share/nginx/html;
63+
#}
64+
}

0 commit comments

Comments
 (0)