adding in rancher in docker compose
This commit is contained in:
@@ -31,3 +31,11 @@ services:
|
|||||||
- /mnt/registry:/var/lib/registry
|
- /mnt/registry:/var/lib/registry
|
||||||
networks:
|
networks:
|
||||||
- nginx
|
- nginx
|
||||||
|
rancher:
|
||||||
|
image: rancher/rancher:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
container_name: rancher
|
||||||
|
ports:
|
||||||
|
- 2000:80
|
||||||
|
- 2001:443
|
||||||
|
privileged: true
|
||||||
|
|||||||
+2
-2
@@ -11,9 +11,7 @@ http {
|
|||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stream {
|
|
||||||
server {
|
server {
|
||||||
listen 5000;
|
listen 5000;
|
||||||
proxy_pass localhost:5001;
|
proxy_pass localhost:5001;
|
||||||
@@ -23,7 +21,9 @@ stream {
|
|||||||
listen 80;
|
listen 80;
|
||||||
proxy_pass localhost:33360; # TODO: change to NodePort of helloworld within kubernetes
|
proxy_pass localhost:33360; # TODO: change to NodePort of helloworld within kubernetes
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stream {
|
||||||
server {
|
server {
|
||||||
listen 3080;
|
listen 3080;
|
||||||
proxy_pass localhost:33360; # TODO: change to NodePort of api within kubernetes
|
proxy_pass localhost:33360; # TODO: change to NodePort of api within kubernetes
|
||||||
|
|||||||
Reference in New Issue
Block a user