From 3c24395d5742e142329f2fe77b4a4f19ea094aeb Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 14 Oct 2023 18:50:37 +0900 Subject: [PATCH] updated omv-svc01.yml --- docker-stack/omv-svc01.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/docker-stack/omv-svc01.yml b/docker-stack/omv-svc01.yml index e6ffa83..30f7d5e 100644 --- a/docker-stack/omv-svc01.yml +++ b/docker-stack/omv-svc01.yml @@ -2,6 +2,7 @@ version: "3.8" volumes: traefik-data-volume: + web-data-volume: gitea-data-volume: codepot-data-volume: drone-data-volume: @@ -47,7 +48,6 @@ services: #- host-network deploy: mode: global - resources: limits: memory: 1GB @@ -56,6 +56,7 @@ services: command: - --log.level=INFO - --accessLog + #- --accesslog.filepath=/config/logs/access.log - --api.dashboard=true - --api.insecure=true - --ping=true @@ -71,6 +72,40 @@ services: - --providers.file.filename=/config/traefik-cert.yml - --providers.file.watch=true - --metrics.prometheus=true + + web-service: + image: docker.io/hyunghwan/hio:webs + hostname: web-service-host + networks: + - traefik-network + volumes: + - type: volume + source: web-data-volume + target: /data + #read_only: true + read_only: false + logging: + driver: "local" + options: + max-file: "5" + max-size: "5m" + deploy: + mode: global + resources: + limits: + memory: 128MB + restart_policy: + condition: on-failure + labels: + - traefik.enable=true + ##- traefik.docker.network=traefik-network + - traefik.http.routers.web-secure.entrypoints=websec + - traefik.http.routers.web-secure.rule=Host(`miflux.com`) || Host(`www.miflux.com`) + - traefik.http.routers.web-secure.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=web-sticker + gitea-service: image: docker.io/gitea/gitea:1.20.4 hostname: gitea-service-host @@ -134,6 +169,7 @@ services: - traefik.http.middlewares.gitea-to-codepot.redirectregex.regex=^https://code.miflux.com/code/(.*)$ - traefik.http.middlewares.gitea-to-codepot.redirectregex.replacement=https://cpot.miflux.com/code/$${1} - traefik.http.middlewares.redirect-merisia-benjaminrancourt.redirectregex.permanent=false + codepot-service: image: docker.io/hyunghwan/codepot:ubnt hostname: codepot-service-host