diff --git a/docker-compose.yaml b/docker-compose.yaml index c52f9cb..870e239 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -31,3 +31,11 @@ services: - /mnt/registry:/var/lib/registry networks: - nginx + rancher: + image: rancher/rancher:latest + restart: unless-stopped + container_name: rancher + ports: + - 2000:80 + - 2001:443 + privileged: true diff --git a/nginx.conf b/nginx.conf index e5205ca..daed5e5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,9 +11,7 @@ http { index index.html; } } -} -stream { server { listen 5000; proxy_pass localhost:5001; @@ -23,7 +21,9 @@ stream { listen 80; proxy_pass localhost:33360; # TODO: change to NodePort of helloworld within kubernetes } +} +stream { server { listen 3080; proxy_pass localhost:33360; # TODO: change to NodePort of api within kubernetes