Chore: added Dockerfile & traefik compose.yml
This commit is contained in:
parent
dbd4cbfe9a
commit
49d58b7b82
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM node:lts-alpine3.20
|
||||
|
||||
WORKDIR /app
|
||||
COPY src/ .
|
||||
|
||||
RUN npm install --global serve
|
||||
EXPOSE 3000
|
||||
CMD [ "serve", "." ]
|
||||
9
compose.yml
Normal file
9
compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
services:
|
||||
root:
|
||||
build: .
|
||||
labels:
|
||||
- "traefik.http.routers.sampleweb.rule=Host(`truyen.network`) && PathPrefix(`/`)"
|
||||
- "traefik.http.routers.sampleweb.entrypoints=websecure"
|
||||
# - "traefik.http.routers.sampleweb.tls=true"
|
||||
# - "traefik.http.routers.sampleweb.tls.certresolver=letsencrypt"
|
||||
- "traefik.enable=true"
|
||||
Loading…
x
Reference in New Issue
Block a user