updated: 2024-12-12 16:37:00

This commit is contained in:
qxsugar 2024-12-12 16:37:00 +08:00
parent ef9e3ecb17
commit d43a51a212
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,19 @@
version: "3"
services:
server:
image: ccr.ccs.tencentyun.com/wwww/public-app:gitea-1.21.1
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- DISABLE_REGISTRATION=true
restart: always
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
mem_limit: 2g
cpus: 1.0

46
devops/gitea/ingress.yaml Normal file
View File

@ -0,0 +1,46 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: juno-gitea
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- gitea.lingpaike.com
secretName: gitea.lingpaike.com
rules:
- host: gitea.lingpaike.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: juno-gitea
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
name: juno-gitea
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
---
apiVersion: v1
kind: Endpoints
metadata:
name: juno-gitea
subsets:
- addresses:
- ip: 172.17.0.6
ports:
- name: http
port: 3000
protocol: TCP