This commit is contained in:
louiscklaw
2025-01-31 19:19:02 +08:00
parent b97a785103
commit cd17b58401
59 changed files with 25113 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# CREDIT: https://github.com/shren207/nextjs-docker-compose
# Dockerfile
FROM node:18-buster
RUN mkdir -p /app/node_modules
RUN chown 1000:1000 -R /app
WORKDIR /app
USER 1000:1000

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -ex
npm i
npm run start

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "http-server --cors ./public"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"http-server": "^14.1.1",
"serve": "^14.2.0"
}
}

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link
href="//cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
crossorigin="anonymous"
/>
<title>abcdesiihh</title>
</head>
<body>
<div style="
display: flex; flex-direction: column;
justify-content: center;align-items: center;">
<div>
<h2>helloworld demo</h2>
<div>
<div>helloworld demo</div>
<a href="//www.google.com">www.google.com</a>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script
src="//cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
crossorigin="anonymous"
></script>
</body>
</html>

View File

@@ -0,0 +1,33 @@
# CREDIT: https://github.com/shren207/nextjs-docker-compose
services:
abcdesiihh_share:
container_name: abcdesiihh_share
build: .
restart: always
volumes:
- ./app:/app
- abcdesiihh_node_modules:/app/node_modules
working_dir: /app
# command: sleep infinity
command: bash entry.sh
ports:
- 8080
labels:
- "traefik.enable=true"
- "traefik.http.routers.abcdesiihh-http.rule=Host(`abcdesiihh.louislabs.com`)"
- "traefik.http.routers.abcdesiihh-http.entrypoints=web"
- "traefik.http.routers.abcdesiihh-http.middlewares=abcdesiihh-https"
- "traefik.http.middlewares.abcdesiihh-https.redirectscheme.scheme=https"
- "traefik.http.routers.abcdesiihh.rule=Host(`abcdesiihh.louislabs.com`)"
- "traefik.http.routers.abcdesiihh.entrypoints=websecure"
- "traefik.http.routers.abcdesiihh.tls.certresolver=myresolver"
- "traefik.http.services.abcdesiihh.loadbalancer.server.port=8080"
networks:
default:
external:
name: traefik-proxy-network
volumes:
abcdesiihh_node_modules:

View File

@@ -0,0 +1,14 @@
{
"name": "docker-helloworld",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"into_docker": "docker compose exec -it test bash",
"docker_rebuild": "docker compose up -d"
},
"keywords": [],
"author": "",
"license": "ISC"
}

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -ex
docker compose pull
docker compose build
docker compose kill
docker compose down
docker compose up -d

7
abcdesiihh/gitUpdate.bat Normal file
View File

@@ -0,0 +1,7 @@
git status .
@pause
git add .
git commit -m"update abcdesiihh,"
start git push

11
abcdesiihh/meta.md Normal file
View File

@@ -0,0 +1,11 @@
---
tags: [pending]
---
# abcdesiihh
not done
quotation HKD300 ~ HKD500
(https://www.carousell.com.hk/archive/1671093474/)

14
abcdesiihh/package.json Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "abcdesiihh",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"gitUpdate": "git add . && git commit -m\"update abcdesiihh,\"",
"watch-bs": "npx browser-sync start -h 0.0.0.0 --proxy 'localhost:32768' --files \"**/app\""
},
"keywords": [],
"author": "",
"license": "ISC"
}