updated omv-svc01.yml

This commit is contained in:
hyung-hwan 2024-03-07 14:12:25 +09:00
parent 512b821232
commit d74db62bc2

View File

@ -14,7 +14,7 @@ networks:
services: services:
traefik-service: traefik-service:
image: docker.io/traefik:2.10.1 image: docker.io/traefik:2.11.0
hostname: traefik-service-host hostname: traefik-service-host
tty: true tty: true
volumes: volumes:
@ -55,8 +55,14 @@ services:
condition: on-failure condition: on-failure
command: command:
- --log.level=INFO - --log.level=INFO
- --accessLog - --accesslog
#- --accesslog.filepath=/config/logs/access.log #- --accesslog.filepath=/config/logs/access.log
- --accesslog.format=common
- --accesslog.fields.defaultmode=keep
- --accesslog.fields.headers.defaultmode=keep
- --accesslog.fields.headers.names.X-Forwarded-For=keep
- --accesslog.fields.headers.names.RequestHost=keep
- --api.dashboard=true - --api.dashboard=true
- --api.insecure=true - --api.insecure=true
- --ping=true - --ping=true
@ -107,7 +113,7 @@ services:
##- traefik.http.services.web-service.loadbalancer.sticky.cookie.name=web-sticker ##- traefik.http.services.web-service.loadbalancer.sticky.cookie.name=web-sticker
gitea-service: gitea-service:
image: docker.io/gitea/gitea:1.20.4 image: docker.io/gitea/gitea:1.21.7
hostname: gitea-service-host hostname: gitea-service-host
tty: true tty: true
environment: environment:
@ -157,17 +163,21 @@ services:
- traefik.http.routers.gitea-secure.entrypoints=websec - traefik.http.routers.gitea-secure.entrypoints=websec
- traefik.http.routers.gitea-secure.rule=Host(`code.miflux.com`) - traefik.http.routers.gitea-secure.rule=Host(`code.miflux.com`)
- traefik.http.routers.gitea-secure.tls=true - traefik.http.routers.gitea-secure.tls=true
- traefik.http.routers.gitea-secure.middlewares=gitea-to-codepot-diff-to-file,gitea-to-codepot ##- traefik.http.routers.gitea-secure.middlewares=gitea-to-codepot-diff-to-file,gitea-to-codepot
- traefik.http.routers.gitea-secure.middlewares=cpot-old-url-to-gitea
#- traefik.http.routers.gitea-plain.entrypoints=web #- traefik.http.routers.gitea-plain.entrypoints=web
#- traefik.http.routers.gitea-plain.rule=Host(`code.miflux.com`) #- traefik.http.routers.gitea-plain.rule=Host(`code.miflux.com`)
#- traefik.http.routers.gitea-plain.tls=false #- traefik.http.routers.gitea-plain.tls=false
- traefik.http.services.gitea-service.loadbalancer.server.port=3000 - traefik.http.services.gitea-service.loadbalancer.server.port=3000
- traefik.http.services.gitea-service.loadbalancer.sticky.cookie=true - traefik.http.services.gitea-service.loadbalancer.sticky.cookie=true
- traefik.http.services.gitea-service.loadbalancer.sticky.cookie.name=gitea-sticker - traefik.http.services.gitea-service.loadbalancer.sticky.cookie.name=gitea-sticker
- traefik.http.middlewares.gitea-to-codepot-diff-to-file.redirectregex.regex=^https://code.miflux.com/code/(fulldiff|diff)/(.*)$ ##- traefik.http.middlewares.gitea-to-codepot-diff-to-file.redirectregex.regex=^https://code.miflux.com/code/(fulldiff|diff)/(.*)$
- traefik.http.middlewares.gitea-to-codepot-diff-to-file.redirectregex.replacement=https://cpot.miflux.com/code/file/$${2} ##- traefik.http.middlewares.gitea-to-codepot-diff-to-file.redirectregex.replacement=https://cpot.miflux.com/code/file/$${2}
- 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.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.cpot-old-url-to-gitea.redirectregex.regex=^https://code.miflux.com/(code|file|issue|wiki|project|graph)/[^/]+/([^/]+)(/.+)*$
- traefik.http.middlewares.cpot-old-url-to-gitea.redirectregex.replacement=https://code.miflux.com/hyung-hwan/$${2}
- traefik.http.middlewares.redirect-merisia-benjaminrancourt.redirectregex.permanent=false - traefik.http.middlewares.redirect-merisia-benjaminrancourt.redirectregex.permanent=false
codepot-service: codepot-service:
@ -178,12 +188,14 @@ services:
- --port=80 - --port=80
- --hide-index-page=yes - --hide-index-page=yes
- --https-redirected=yes - --https-redirected=yes
- --mpm-prefork-max-workers=6
networks: networks:
- traefik-network - traefik-network
volumes: volumes:
- type: volume - type: volume
source: codepot-data-volume source: codepot-data-volume
target: /var/lib/codepot target: /var/lib/codepot
logging: logging:
driver: "local" driver: "local"
options: options:
@ -202,12 +214,20 @@ services:
- traefik.http.routers.codepot-secure.entrypoints=websec - traefik.http.routers.codepot-secure.entrypoints=websec
- traefik.http.routers.codepot-secure.rule=Host(`cpot.miflux.com`) - traefik.http.routers.codepot-secure.rule=Host(`cpot.miflux.com`)
- traefik.http.routers.codepot-secure.tls=true - traefik.http.routers.codepot-secure.tls=true
- traefik.http.routers.codepot-secure.middlewares=block-svn-access,cpot-proj-to-gitea,cpot-rest-to-gitea
#- traefik.http.routers.codepot-plain.entrypoints=web #- traefik.http.routers.codepot-plain.entrypoints=web
#- traefik.http.routers.codepot-plain.rule=Host(`cpot.miflux.com`) #- traefik.http.routers.codepot-plain.rule=Host(`cpot.miflux.com`)
#- traefik.http.routers.codepot-secure.tls=false #- traefik.http.routers.codepot-secure.tls=false
- traefik.http.services.codepot.loadbalancer.sticky.cookie=true - traefik.http.services.codepot.loadbalancer.sticky.cookie=true
- traefik.http.services.codepot.loadbalancer.sticky.cookie.name=codepot-sticker - traefik.http.services.codepot.loadbalancer.sticky.cookie.name=codepot-sticker
- traefik.http.services.codepot.loadbalancer.server.port=80 - traefik.http.services.codepot.loadbalancer.server.port=80
# - block access to svn
- traefik.http.middlewares.block-svn-access.redirectregex.regex=^https://cpot.miflux.com/svn/(.*)$
- traefik.http.middlewares.block-svn-access.redirectregex.replacement=https://cpot.miflux.com/svn/
- traefik.http.middlewares.cpot-proj-to-gitea.redirectregex.regex=^https://cpot.miflux.com/[^/]+/[^/]+/([^/]+)(/.+)*$
- traefik.http.middlewares.cpot-proj-to-gitea.redirectregex.replacement=https://code.miflux.com/hyung-hwan/$${1}
- traefik.http.middlewares.cpot-rest-to-gitea.redirectregex.regex=^https://cpot.miflux.com/(.*)$
- traefik.http.middlewares.cpot-rest-to-gitea.redirectregex.replacement=https://code.miflux.com/hyung-hwan/
drone-service: drone-service:
image: docker.io/drone/drone:2 image: docker.io/drone/drone:2
@ -286,3 +306,4 @@ services:
memory: 1GB memory: 1GB
restart_policy: restart_policy:
condition: on-failure condition: on-failure