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/; } }