update,
This commit is contained in:
9
abcdesiihh/docker-share/Dockerfile
Normal file
9
abcdesiihh/docker-share/Dockerfile
Normal 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
|
5
abcdesiihh/docker-share/app/entry.sh
Normal file
5
abcdesiihh/docker-share/app/entry.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
npm i
|
||||
npm run start
|
2117
abcdesiihh/docker-share/app/package-lock.json
generated
Normal file
2117
abcdesiihh/docker-share/app/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
abcdesiihh/docker-share/app/package.json
Normal file
17
abcdesiihh/docker-share/app/package.json
Normal 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"
|
||||
}
|
||||
}
|
37
abcdesiihh/docker-share/app/public/index.html
Normal file
37
abcdesiihh/docker-share/app/public/index.html
Normal 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>
|
33
abcdesiihh/docker-share/docker-compose.yml
Normal file
33
abcdesiihh/docker-share/docker-compose.yml
Normal 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:
|
14
abcdesiihh/docker-share/package.json
Normal file
14
abcdesiihh/docker-share/package.json
Normal 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"
|
||||
}
|
9
abcdesiihh/docker-share/up.sh
Normal file
9
abcdesiihh/docker-share/up.sh
Normal 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
7
abcdesiihh/gitUpdate.bat
Normal file
@@ -0,0 +1,7 @@
|
||||
git status .
|
||||
|
||||
@pause
|
||||
|
||||
git add .
|
||||
git commit -m"update abcdesiihh,"
|
||||
start git push
|
11
abcdesiihh/meta.md
Normal file
11
abcdesiihh/meta.md
Normal 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
14
abcdesiihh/package.json
Normal 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"
|
||||
}
|
Reference in New Issue
Block a user