adding in server routes
This commit is contained in:
+10
-4
@@ -5,10 +5,16 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: caddy
|
container_name: nginx-reverse-proxy
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000 # container registry
|
- 8080:8080 # hello world nginx docker container itself
|
||||||
- 80:80 # kubernetes - hello world
|
- 5000:5000 # container registry with tls within docker
|
||||||
|
|
||||||
|
- 80:80 # hello world in kubernetes cluster
|
||||||
|
- 3080:3080 # api within kubernetes cluster
|
||||||
|
- 6000:6000 # audio route
|
||||||
|
- 6001:6001 # video route
|
||||||
|
- 6002:6002 # presence route
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./src/index.html:/usr/share/nginx/html/index.html
|
- ./src/index.html:/usr/share/nginx/html/index.html
|
||||||
@@ -20,7 +26,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: registry
|
container_name: registry
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5001:5001 # using different port simply because nginx container needs the 5000 port
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/registry:/var/lib/registry
|
- /mnt/registry:/var/lib/registry
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
+33
-1
@@ -3,7 +3,7 @@ events {}
|
|||||||
|
|
||||||
http {
|
http {
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 8080;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@@ -12,3 +12,35 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stream {
|
||||||
|
server {
|
||||||
|
listen 5000;
|
||||||
|
proxy_pass localhost:5001;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
proxy_pass localhost:33360; # TODO: change to NodePort of helloworld within kubernetes
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 3080;
|
||||||
|
proxy_pass localhost:33360; # TODO: change to NodePort of api within kubernetes
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 6000 udp;
|
||||||
|
proxy_pass localhost:33600; # TODO: change to NodePort of udp deployment service
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 6001 udp;
|
||||||
|
proxy_pass localhost:33600; # TODO: change to NodePort of udp deployment service
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 6002;
|
||||||
|
proxy_pass localhost:33600; # TODO: change to NodePort of tcp presence deployment service
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user