|
5 | 5 | # Chris Akker, Shouvik Dutta, Adam Currier
|
6 | 6 | #
|
7 | 7 | services:
|
8 |
| - basics-plus1: # Alpine NGINX Plus Web / Load Balancer |
| 8 | + basics-plus1: # Alpine NGINX Plus Web / Load Balancer |
9 | 9 | 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 |
23 | 23 | 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 |
28 | 28 | restart: always
|
29 | 29 | #
|
30 |
| - basics-plus2: # Alpine NGINX Plus Web / Load Balancer |
| 30 | + basics-plus2: # Alpine NGINX Plus Web / Load Balancer |
31 | 31 | 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 |
39 | 39 | 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 |
45 | 45 | 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 |
50 | 50 | restart: always
|
51 | 51 | #
|
52 |
| - basics-plus3: # RHEL UBI NGINX Plus Web / Load Balancer |
| 52 | + basics-plus3: # RHEL UBI NGINX Plus Web / Load Balancer |
53 | 53 | 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 |
67 | 67 | 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 |
72 | 72 | restart: always
|
73 | 73 | #
|
74 |
| - basics-oss1: # Debian NGINX OSS Web / Load Balancer |
| 74 | + basics-oss1: # Debian NGINX OSS Web / Load Balancer |
75 | 75 | 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 |
89 | 89 | 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 |
94 | 94 | restart: always
|
95 | 95 | #
|
96 |
| - basics-oss2: # Alpine NGINX OSS Web / Load Balancer |
| 96 | + basics-oss2: # Alpine NGINX OSS Web / Load Balancer |
97 | 97 | 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 |
111 | 111 | 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 |
116 | 116 | restart: always
|
117 | 117 | #
|
118 |
| - basics-oss3: # Older Alpine NGINX OSS Web / Load Balancer |
| 118 | + basics-oss3: # Older Alpine NGINX OSS Web / Load Balancer |
119 | 119 | 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 |
133 | 133 | 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 |
138 | 138 | restart: always
|
139 | 139 | #
|
140 | 140 | 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 |
148 | 148 | 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' |
156 | 156 | 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' |
164 | 164 |
|
0 commit comments