diff --git a/docker-compose.yml b/docker-compose.yml index 37d8826e7..28a8a8f4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,8 +17,7 @@ services: restart: always build: context: . - dockerfile: src/FilterLists.Web/Dockerfile - target: final + dockerfile: src/web/Dockerfile networks: - reverse-proxy diff --git a/ops/nginx/conf.d.dev/filterlists.conf b/ops/nginx/conf.d.dev/filterlists.conf index 147533120..a2caf041b 100644 --- a/ops/nginx/conf.d.dev/filterlists.conf +++ b/ops/nginx/conf.d.dev/filterlists.conf @@ -16,7 +16,7 @@ server { } location / { - proxy_pass http://web:80; + proxy_pass http://web:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; diff --git a/ops/nginx/conf.d/filterlists.conf b/ops/nginx/conf.d/filterlists.conf index 16ac965df..5802df8d0 100644 --- a/ops/nginx/conf.d/filterlists.conf +++ b/ops/nginx/conf.d/filterlists.conf @@ -20,7 +20,7 @@ server { } location / { - proxy_pass http://web:80; + proxy_pass http://web:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; diff --git a/src/web/Dockerfile b/src/web/Dockerfile new file mode 100644 index 000000000..a5724e1c2 --- /dev/null +++ b/src/web/Dockerfile @@ -0,0 +1,7 @@ +FROM node:alpine +CMD ["npm", "start"] +EXPOSE 3000 +WORKDIR /usr/app/ +COPY src/web/package*.json ./ +RUN npm install -qy +COPY src/web/. ./ \ No newline at end of file