From 8cfb510d5b17ed25ed0000d10e678dbf492146d7 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 6 Sep 2023 16:49:15 -0500 Subject: [PATCH] initial nginx conf --- docker-compose.yml | 2 ++ nginx-conf/default.conf.template | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 00707f4..8b689d1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,9 @@ services: proxy: image: nginx:stable + container_name: "cors-proxy-nginx" ports: - 8080:80 volumes: - ./nginx-conf/default.conf.template:/etc/nginx/templates/default.conf.template + - ./nginx_logs:/var/log/nginx diff --git a/nginx-conf/default.conf.template b/nginx-conf/default.conf.template index df5116f..cbf93d5 100644 --- a/nginx-conf/default.conf.template +++ b/nginx-conf/default.conf.template @@ -7,6 +7,6 @@ server { error_log /var/log/nginx/error.log debug; location /service { - proxy_pass http://host.docker.internal:3000; + proxy_pass http://192.168.2.214:3000/; } }