adding web.yml
This commit is contained in:
parent
e75d5c9753
commit
3046fcdcee
@ -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
|
||||
|
||||
|
38
docker-stack/web.yml
Normal file
38
docker-stack/web.yml
Normal file
@ -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
|
||||
|
4
web-doc/Makefile
Normal file
4
web-doc/Makefile
Normal file
@ -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 '^[<>]'
|
||||
|
1
web-doc/README.md
Normal file
1
web-doc/README.md
Normal file
@ -0,0 +1 @@
|
||||
# miflux
|
3
web-doc/_sidebar.md
Normal file
3
web-doc/_sidebar.md
Normal file
@ -0,0 +1,3 @@
|
||||
* [Home](/)
|
||||
* [Vitess](vitess.md "Vitess")
|
||||
|
20
web-doc/index.html
Normal file
20
web-doc/index.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div data-app id='main'></div>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
el: '#main',
|
||||
loadSidebar: true, // when true, _sidebar.md is required
|
||||
coverpage: false // when true, _coverpage.md is required
|
||||
};
|
||||
</script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
</body>
|
||||
</html>
|
1
web-doc/vitess.md
Normal file
1
web-doc/vitess.md
Normal file
@ -0,0 +1 @@
|
||||
## Vitess
|
Loading…
Reference in New Issue
Block a user