updated omv-svc01.yml

This commit is contained in:
hyung-hwan 2023-10-14 18:50:37 +09:00
parent cc77163ce5
commit 3c24395d57

View File

@ -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