chore: Added website

This commit is contained in:
2024-07-26 14:23:26 +02:00
parent 6b9f37a4f8
commit c49a49b733
33 changed files with 131 additions and 16 deletions

17
docker/compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
ward:
build: ward
labels:
- "traefik.http.routers.sampleweb.rule=Host(`ward.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"
root:
build: root
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"

9
docker/root/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM node:lts-alpine3.20
WORKDIR /app
COPY ../../src/root .
RUN npm install --global serve
EXPOSE 3000
CMD [ "serve", "." ]
#http://localhost:3000

9
docker/ward/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM node:lts-alpine3.20
WORKDIR /app
COPY ../../src/ward .
RUN npm install --global serve
EXPOSE 3000
CMD [ "serve", "." ]
#http://localhost:3000