updated: 2024-12-12 16:37:00
This commit is contained in:
parent
ef9e3ecb17
commit
d43a51a212
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue