The config file needs to be mounted to the frontend docker container in order to make the backend configurable.
Change-Id: I60dd041634bd707719fe2338a5c4c9d2b472693e
Issue-ID: NONRTRIC-400
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
--- /dev/null
+events{}
+
+http {
+ include /etc/nginx/mime.types;
+
+ upstream backend {
+ server nonrtric-gateway:9090;
+ }
+
+ server {
+ listen 8080;
+ server_name localhost;
+ root /usr/share/nginx/html;
+ index index.html;
+ location /api/ {
+ proxy_pass http://backend;
+ }
+ }
+}
\ No newline at end of file
ports:
- 8080:8080
- 8082:8082
ports:
- 8080:8080
- 8082:8082
+ volumes:
+ - ./control-panel/config/nginx.conf:/etc/nginx/nginx.conf:ro