mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
dockerize
This commit is contained in:
parent
a13ff18709
commit
82ad039a53
4 changed files with 10 additions and 4 deletions
|
|
@ -17,8 +17,7 @@ services:
|
|||
restart: always
|
||||
build:
|
||||
context: .
|
||||
dockerfile: src/FilterLists.Web/Dockerfile
|
||||
target: final
|
||||
dockerfile: src/web/Dockerfile
|
||||
networks:
|
||||
- reverse-proxy
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
7
src/web/Dockerfile
Normal file
7
src/web/Dockerfile
Normal file
|
|
@ -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/. ./
|
||||
Loading…
Reference in a new issue