first commit

This commit is contained in:
ZennDev1337 2024-02-06 10:54:37 +01:00
commit 986fa8ff07
2 changed files with 90 additions and 0 deletions

28
compose.yaml Normal file
View file

@ -0,0 +1,28 @@
services:
gitea:
image: gitea/gitea:latest
environment:
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
restart: always
volumes:
- git_data:/data
ports:
- 3000:3000
db:
image: postgres:alpine
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
expose:
- 5432
volumes:
postgres-data:
git_data:

62
kube.yaml Normal file
View file

@ -0,0 +1,62 @@
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2024-02-06T08:41:45Z"
labels:
app: gitea
name: gitea
spec:
containers:
- args:
- postgres
env:
- name: HOSTNAME
value: 99d80d55c25c
- name: POSTGRES_DB
value: gitea
- name: HOME
value: /root
- name: POSTGRES_PASSWORD
value: gitea
- name: POSTGRES_USER
value: gitea
image: docker.io/library/postgres:alpine
name: db-1-podified
ports:
- containerPort: 3000
hostPort: 3000
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: mnt-c-Users-zenn-projects-gibb-modul347-postgres-data-host-0
- args:
- /bin/s6-svscan
- /etc/s6
env:
- name: HOME
value: /root
- name: DB_HOST
value: db:5432
- name: DB_USER
value: gitea
- name: HOSTNAME
value: 283999b21e5d
- name: DB_TYPE
value: postgres
- name: DB_NAME
value: gitea
- name: DB_PASSWD
value: gitea
image: docker.io/gitea/gitea:latest
name: gitea-1-podified
volumeMounts:
- mountPath: /data
name: mnt-c-Users-zenn-projects-gibb-modul347-git_data-host-0
volumes:
- hostPath:
path: /mnt/c/Users/zenn/projects/gibb/modul347/postgres-data
type: Directory
name: mnt-c-Users-zenn-projects-gibb-modul347-postgres-data-host-0
- hostPath:
path: /mnt/c/Users/zenn/projects/gibb/modul347/git_data
type: Directory
name: mnt-c-Users-zenn-projects-gibb-modul347-git_data-host-0