diff --git a/docker-stack/Makefile b/docker-stack/Makefile index ec5f956..2b96e6a 100644 --- a/docker-stack/Makefile +++ b/docker-stack/Makefile @@ -156,6 +156,16 @@ stack-up-monitor: stack-up-prometheus-node-exporter stack-up-prometheus stack-up stack-down-monitor: stack-down-grafana stack-down-prometheus stack-down-prometheus-node-exporter + +# ------------------------------------------------------------------- +stack-up-web: network-up-traefik + [ -d "$(D1_ROOT)/web" ] || mkdir "$(D1_ROOT)/web" + docker stack deploy --compose-file web.yml --resolve-image always web-stack + +stack-down-web: + docker stack rm web-stack + + #------------------------------------------------ stack-down-all: stack-down-portainer stack-down-drone-runner stack-down-drone stack-down-gitea stack-down-codepot stack-down-traefik diff --git a/docker-stack/web.yml b/docker-stack/web.yml new file mode 100644 index 0000000..318c2ee --- /dev/null +++ b/docker-stack/web.yml @@ -0,0 +1,38 @@ +version: "3.8" + +networks: + traefik-network: + external: true + +services: + web-service: + image: docker.io/hyunghwan/hio:webs + hostname: web-service-host + networks: + - traefik-network + volumes: + - type: bind + source: /home/gfs-data/web + target: /data + #read_only: true + read_only: false + deploy: + mode: global + resources: + limits: + memory: 128MB + restart_policy: + condition: on-failure + labels: + - traefik.enable=true + ##- traefik.docker.network=traefik-network + - traefik.http.routers.doc-engr.entrypoints=websec + - traefik.http.routers.doc-engr.rule=Host(`miflux.com`) + - traefik.http.routers.doc-engr.tls=true + - traefik.http.routers.doc-www-engr.entrypoints=websec + - traefik.http.routers.doc-www-engr.rule=Host(`www.miflux.com`) + - traefik.http.routers.doc-www-engr.tls=true + - traefik.http.services.web-service.loadbalancer.server.port=80 + ##- traefik.http.services.web-service.loadbalancer.sticky.cookie=true + ##- traefik.http.services.web-service.loadbalancer.sticky.cookie.name=doc-sticker + diff --git a/web-doc/Makefile b/web-doc/Makefile new file mode 100644 index 0000000..d97c6e0 --- /dev/null +++ b/web-doc/Makefile @@ -0,0 +1,4 @@ +all: + tar -cvf web-doc.tar index.html *.md + curl -sv -X UNTAR --data-binary @web-doc.tar --output /dev/null https://www.miflux.com 2>&1 | grep '^[<>]' + diff --git a/web-doc/README.md b/web-doc/README.md new file mode 100644 index 0000000..6889ca7 --- /dev/null +++ b/web-doc/README.md @@ -0,0 +1 @@ +# miflux diff --git a/web-doc/_sidebar.md b/web-doc/_sidebar.md new file mode 100644 index 0000000..5199f49 --- /dev/null +++ b/web-doc/_sidebar.md @@ -0,0 +1,3 @@ +* [Home](/) +* [Vitess](vitess.md "Vitess") + diff --git a/web-doc/index.html b/web-doc/index.html new file mode 100644 index 0000000..c0d6031 --- /dev/null +++ b/web-doc/index.html @@ -0,0 +1,20 @@ + + + + + + + + + +
+ + + + diff --git a/web-doc/vitess.md b/web-doc/vitess.md new file mode 100644 index 0000000..112ed01 --- /dev/null +++ b/web-doc/vitess.md @@ -0,0 +1 @@ +## Vitess