From 088fa0676bee6ebc16f0fed4aad8f11e8578e9a3 Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 14 Aug 2023 13:27:17 -0700 Subject: [PATCH] adding in rancher in docker compose --- docker-compose.yaml | 8 ++++++++ nginx.conf | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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